diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-22 08:24:44 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-22 08:24:44 -0500 |
commit | d1afe39ac8961d865974b746ff072ecedc9abeee (patch) | |
tree | 4db21795ad567c275a0721b5858de759e5a4fbc0 /docs/primitives | |
parent | 5399fd087268b671c61ad3710cdec6d540c02f22 (diff) | |
download | cryptography-d1afe39ac8961d865974b746ff072ecedc9abeee.tar.gz cryptography-d1afe39ac8961d865974b746ff072ecedc9abeee.tar.bz2 cryptography-d1afe39ac8961d865974b746ff072ecedc9abeee.zip |
fix typo and show result of decryption in docs
Diffstat (limited to 'docs/primitives')
-rw-r--r-- | docs/primitives/symmetric-encryption.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst index 2021356c..544c7163 100644 --- a/docs/primitives/symmetric-encryption.rst +++ b/docs/primitives/symmetric-encryption.rst @@ -15,7 +15,7 @@ where the encrypter and decrypter both use the same key. Block ciphers work by encrypting content in chunks, often 64- or 128-bits. They combine an underlying algorithm (such as AES), with a mode (such as - CBC, CTR, or GCM).A simple example of encrypting (and then decrypting) + CBC, CTR, or GCM). A simple example of encrypting (and then decrypting) content with AES is: .. doctest:: @@ -26,7 +26,7 @@ where the encrypter and decrypter both use the same key. >>> ct = encryptor.update(b"a secret message") + encryptor.finalize() >>> decryptor = cipher.decryptor() >>> decryptor.update(ct) + decryptor.finalize() - '...' + b"a secret message" :param cipher: One of the ciphers described below. :param mode: One of the modes described below. |