aboutsummaryrefslogtreecommitdiffstats
path: root/docs/primitives/symmetric-encryption.rst
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-09-10 19:40:33 -0700
committerDonald Stufft <donald@stufft.io>2013-09-10 19:40:33 -0700
commita672bbe6226648c68cdb628b5b7d67f2e8270698 (patch)
tree27ac647f631ff4b66107b6c559afc0da59c1f8a4 /docs/primitives/symmetric-encryption.rst
parentc9e91e8cc1d8a5e20ec4541328afabe5d633228b (diff)
parentcd413a36d3716bf56df7b6e071e57071730d1386 (diff)
downloadcryptography-a672bbe6226648c68cdb628b5b7d67f2e8270698.tar.gz
cryptography-a672bbe6226648c68cdb628b5b7d67f2e8270698.tar.bz2
cryptography-a672bbe6226648c68cdb628b5b7d67f2e8270698.zip
Merge pull request #56 from alex/docs-cleanup
Cleaned up the docs for ECB
Diffstat (limited to 'docs/primitives/symmetric-encryption.rst')
-rw-r--r--docs/primitives/symmetric-encryption.rst14
1 files changed, 9 insertions, 5 deletions
diff --git a/docs/primitives/symmetric-encryption.rst b/docs/primitives/symmetric-encryption.rst
index d0429d4b..f028c755 100644
--- a/docs/primitives/symmetric-encryption.rst
+++ b/docs/primitives/symmetric-encryption.rst
@@ -72,11 +72,15 @@ Modes
Insecure Modes
--------------
-.. warning:: Do not use. This is an insecure mode.
+.. warning::
+
+ These modes are insecure. New applications should never make use of them,
+ and existing applications should strongly consider migrating away.
+
+
.. class:: cryptography.primitives.block.modes.ECB()
ECB (Electronic Code Book) is the simplest mode of operation for block
- ciphers. The data is separated into blocks and each block is encrypted
- separately. This means identical plaintext blocks will always result in
- identical encrypted blocks. Due to this property it is not recommended
- for use. Really, don't use it. Just. Don't.
+ ciphers. Each block of data is encrypted in the same way. This means
+ identical plaintext blocks will always result in identical ciphertext
+ blocks, and thus result in information leakage