var encrypted = CryptoJS.AES.encrypt("Message", "Secret Passphrase"); alert(encrypted.toString()); var decrypted = CryptoJS.AES.decrypt(encrypted, "Secret Passphrase"); alert(decrypted.toString());