aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-02-10 15:21:36 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2016-02-10 15:21:36 -0500
commit09828cd4d3136c3fbcf36e2a6cba7f2a26b3350d (patch)
tree5b08a871825c8cebfc6557feabe16b47c04e37ba /docs/hazmat/primitives/symmetric-encryption.rst
parenta0bef9dfde0e94bd1a01db1b4fa51632ac842ee7 (diff)
downloadcryptography-09828cd4d3136c3fbcf36e2a6cba7f2a26b3350d.tar.gz
cryptography-09828cd4d3136c3fbcf36e2a6cba7f2a26b3350d.tar.bz2
cryptography-09828cd4d3136c3fbcf36e2a6cba7f2a26b3350d.zip
Clearly document that this is a good example
Diffstat (limited to 'docs/hazmat/primitives/symmetric-encryption.rst')
-rw-r--r--docs/hazmat/primitives/symmetric-encryption.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/symmetric-encryption.rst b/docs/hazmat/primitives/symmetric-encryption.rst
index 309c6fd0..d5884897 100644
--- a/docs/hazmat/primitives/symmetric-encryption.rst
+++ b/docs/hazmat/primitives/symmetric-encryption.rst
@@ -334,6 +334,9 @@ Modes
:raises ValueError: This is raised if ``len(tag) < min_tag_length``.
+ An example of securely encrypting and decrypting data with ``AES`` in the
+ ``GCM`` mode looks like:
+
.. testcode::
import os