diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-12-13 20:22:14 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-12-13 20:22:14 -0800 |
commit | 989061d070bdee122b07633e9a19e737fa816256 (patch) | |
tree | 2929fbeb90403322a014125def9e9ee10378d5ec /docs/hazmat/primitives/symmetric-encryption.rst | |
parent | b9dd85c661f405099a88b7a76aefde5f59a6b985 (diff) | |
download | cryptography-989061d070bdee122b07633e9a19e737fa816256.tar.gz cryptography-989061d070bdee122b07633e9a19e737fa816256.tar.bz2 cryptography-989061d070bdee122b07633e9a19e737fa816256.zip |
Prefer executable code examples
Diffstat (limited to 'docs/hazmat/primitives/symmetric-encryption.rst')
-rw-r--r-- | docs/hazmat/primitives/symmetric-encryption.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst index ef6f0871..f3def845 100644 --- a/docs/hazmat/primitives/symmetric-encryption.rst +++ b/docs/hazmat/primitives/symmetric-encryption.rst @@ -266,7 +266,7 @@ Modes A good construction looks like: - .. code-block:: pycon + .. doctest:: >>> import os >>> iv = os.urandom(16) @@ -274,7 +274,7 @@ Modes While the following is bad and will leak information: - .. code-block:: pycon + .. doctest:: >>> iv = "a" * 16 >>> mode = CBC(iv) |