Skip to content

Instantly share code, notes, and snippets.

@mvberg
Created April 26, 2017 15:31
Show Gist options
  • Save mvberg/30700e07246cb7f5cc76a56af6440da3 to your computer and use it in GitHub Desktop.
Save mvberg/30700e07246cb7f5cc76a56af6440da3 to your computer and use it in GitHub Desktop.
AES with Crypto
var encrypted = CryptoJS.AES.encrypt("Message", "Secret Passphrase");
//U2FsdGVkX18ZUVvShFSES21qHsQEqZXMxQ9zgHy+bu0=
var decrypted = CryptoJS.AES.decrypt(encrypted, "Secret Passphrase");
//4d657373616765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment