Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bad aes example2!

  • Loading branch information...
commit bb1ff5e391b296af1ca7fd9f3fc3bc3f111fa9e3 1 parent 26dfdbf
@dekz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -67,7 +67,7 @@ Encrypt a message with AES and a phrase
Decrypt a message with AES and a phrase
- decipher = dcrypt.decipher.createDecipher('AES-256-cbc')
+ decipher = dcrypt.decipher.createDecipher('AES-256-cbc', 'This is a key')
cleartext = cipher.update(ciphertext, 'hex', 'utf8')
cleartext += cipher.final('utf8')
>> 'Hello there'
Please sign in to comment.
Something went wrong with that request. Please try again.