aboutsummaryrefslogtreecommitdiffstats
path: root/docs/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-11 12:12:50 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-11 12:12:50 -0700
commite61e5b704457cdb36034aff0d904e4b2dff95b0b (patch)
treec91bcaa3722d0cb07b5736593ea3618445f231dd /docs/primitives/symmetric-encryption.rst
parentd424be8bf0525682b248a8cdc57aa57fe1ec01ee (diff)
parent292112bc875016fd08198fe72091ab32f48f515b (diff)
downloadcryptography-e61e5b704457cdb36034aff0d904e4b2dff95b0b.tar.gz
cryptography-e61e5b704457cdb36034aff0d904e4b2dff95b0b.tar.bz2
cryptography-e61e5b704457cdb36034aff0d904e4b2dff95b0b.zip
Merge pull request #40 from dstufft/fix-docs
Make the example error free
Diffstat (limited to 'docs/primitives/symmetric-encryption.rst')
-rw-r--r--docs/primitives/symmetric-encryption.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index 0812f6b9..9986d89d 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -14,7 +14,7 @@ where the encrypter and decrypter both use the same key.
>>> from cryptography.primitives.block import BlockCipher, ciphers, modes
>>> cipher = BlockCipher(ciphers.AES(key), modes.CBC(iv))
- >>> cipher.encrypt("my secret message") + cipher.finalize()
+ >>> cipher.encrypt(b"a secret message") + cipher.finalize()
# The ciphertext
[...]