AES encryption seems to be broken (MS Sample code!)

L

Lothar Behrens

Hi,

after using code from codeproject to encrypt some passwords I figured
out that a character '§' could not properly decrypted back. Then I
tried the sample code at http://msdn.microsoft.com/en-us/magazine/cc164055.aspx
and it seemed to work on friday (dau§dau).

Now I tried the sample again and it doesn't work with all entered
passwords.

As a sample, if I use 256Bit and a password like 12345678 or 123§dau1,
then the encryption and back (decryption) doesn't produce the origin
input.

Why are these simple passwords produce garbage?

What code is well tested and works even with such easy passwords?

Thanks, Lothar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top