From cd413a36d3716bf56df7b6e071e57071730d1386 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 10 Sep 2013 18:59:43 -0700 Subject: Cleaned up the docs for ECB --- docs/primitives/symmetric-encryption.rst | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'docs/primitives') 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 -- cgit v1.2.3