Fixes a mistake in the advanced cryptography explanation.

This commit is contained in:
Manuel Ebert 2012-04-16 23:31:40 +03:00
parent 8dd2e5e222
commit 2ebf976653

View file

@ -137,7 +137,7 @@ Should you ever want to decrypt your journal manually, you can do so with any pr
with open("my_journal.txt") as f:
cipher = f.read()
crypto = AES.new(key, AES.MODE_CBC, iv = cipher[:16])
plain = crypto.decrypt(cipher)
plain = crypto.decrypt(cipher[16:])
### JSON export