4 ms·
The `createCipher` API derives an IV from the passphrase so basically it uses a static IV for each passphrase. If you used it and need to switch to the new API
by eknkc 8y ago
The `createCipher` API derives an IV from the passphrase so basically it uses a static IV for each passphrase.
If you used it and need to switch to the new API but be able to decrypt old stuff, here's some code to get the IV that the deprecated API actually derives, so you can use it with the new API: https://gist.github.com/bnoordhuis/2de2766d3d3a47ebe41aaaec7e8b14df https://gist.github.com/bnoordhuis/2de2766d3d3a47ebe41aaaec7...