Skip to content

Commit

Permalink
Typo in AES Encryption Plain encryption example
Browse files Browse the repository at this point in the history
Changed the var name from `cipherText` to lowercase `ciphertext` so the "AES Encryption >  Plain encryption" example works.
  • Loading branch information
jokecamp authored Sep 24, 2018
1 parent 89ce246 commit 57e3110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ See: https://code.google.com/p/crypto-js
var CryptoJS = require("crypto-js");

// Encrypt
var cipherText = CryptoJS.AES.encrypt('my message', 'secret key 123').toString();
var ciphertext = CryptoJS.AES.encrypt('my message', 'secret key 123').toString();

// Decrypt
var bytes = CryptoJS.AES.decrypt(ciphertext, 'secret key 123');
Expand Down

0 comments on commit 57e3110

Please sign in to comment.