# Encrypting twice with the same key

From: Daniel Weber (ComeAndSpamIt@gmx.net)
Date: 04/13/03

```From: "Daniel Weber" <ComeAndSpamIt@gmx.net>
Date: Sun, 13 Apr 2003 15:48:53 +0200

```

Is encrypting twice with the same key safe?

May f be the encryption transformation, and A be its Matrix with entries
from Z.
f(x) -> Ax

Then encrypting twice would be f(f(x)) = (AA)x = (A^2)x.

Now, there's much lesser possibilities for the entries of A^2.
That would make brute force a better choice.

Did I think right or am I just insane?

Daniel

## Relevant Pages

• Re: Encrypting twice with the same key
... ]Is encrypting twice with the same key safe? ... ]May f be the encryption transformation, and A be its Matrix with entries ... A decent encryption is not a matrix-- linear crypto is weak. ...
(sci.crypt)
• Re: Encrypting twice with the same key
... >May f be the encryption transformation, and A be its Matrix with entries ... In the overused example of the classic one time pad if the plaintext ... To estimate the theoretical strength of the cipher you are using you ...
(sci.crypt)