Skip to content

Commit

Permalink
bad aes example2!
Browse files Browse the repository at this point in the history
  • Loading branch information
dekz committed Apr 27, 2011
1 parent 26dfdbf commit bb1ff5e
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 @@ -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'
Expand Down

0 comments on commit bb1ff5e

Please sign in to comment.