p-kvstore-crypto
Wrap any p-kvstore to encrypt data stored transparently using an aesXXX cipher.
The values are encrypted while the keys are rehashed using sha256 with the key and iv.
const MapStore = MapStore;const CryptStore = ; const store = password: 'my-ultra-secret-password' salt: 'some-spice-for-the-password' // optional: will use the sha256 of the password by default iterations: 1024 // optional: iterations used in pbkdf2 algorithm: 'aes256' // optional: aes256|aes192|aes128 backing: ;
const MapStore = MapStore;const CryptStore = ; const store = key: 'key of correct length' iv: 'iv of correct length' algorithm: 'aes256' // optional: aes256|aes192|aes128 backing: ;