How to use the aes function from crypto
Find comprehensive JavaScript crypto.aes code examples handpicked from public code repositorys.
GitHub: telehash/e3x-js

102 103 104 105 106 107 108 109 110 111
var key = fold(1,NodeCrypto.createHash("sha256").update(secret).digest()); var ivz = new Buffer(12); ivz.fill(0); // aes-128 decipher the inner var inner = NodeCrypto.aes(false, key, Buffer.concat([iv,ivz]), innerc); return inner; }; }
+ 3 other calls in file
crypto.createHash is the most popular function in crypto (882 examples)