4 ms·
I only skimmed the code, but when it's encrypted, is the only key/input that iv that you've got in the source there?
by cottsak 7y ago
I only skimmed the code, but when it's encrypted, is the only key/input that iv that you've got in the source there?
- bobblywobbles 7y agoThe data is encrypted using the Crypto library from Node (https://nodejs.org/api/crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv_options https://nodejs.org/api/crypto.html#crypto_crypto_createciphe...). The passphrase and IV are used to encrypt/decrypt the data using the aes-256-cbc algorithm (https://github.com/reZach/my-budget/blob/master/app/crypto/code.js#L52 https://github.com/reZach/my-budget/blob/master/app/crypto/c...).