This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* CryptoJS by default: | |
* - uses CBC mode | |
* - pkcs7 for padding | |
* - evpKDF to extract key | |
* - part of the key is used as IV | |
* - before converting to base64 it makes "Salt__"+salt+encrypted_text | |
*/ | |
var CryptoJS = require('crypto-js'); |