Created
November 21, 2013 15:43
-
-
Save edewit/7583936 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| agCrypto.getRandomValue({ | |
| success: function (generatedIV) { | |
| agCrypto.deriveKey({ | |
| password: 'my password', | |
| success: function (rawPassword) { | |
| agCrypto.encrypt({ | |
| options: { | |
| IV: generatedIV, | |
| key: rawPassword, | |
| data: "My Bonnie lies over the ocean, my Bonnie lies over the sea" | |
| }, | |
| success: function (cipherText) { | |
| console.log(cipherText); | |
| } | |
| }); | |
| } | |
| }); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment