TripleDES with weak keys

J

Jeronimo Bertran

I need to encrypt data using a weak key (all 0s) that is being supplied but
I get an exception because the key is weak.

Is there any way to make the TripleDES class encrypt with such a key?

Thanks

Jeronimo Bertran
 
L

Luke Zhang [MSFT]

Hello,

In 128-bit mode, if the first 64 bits are the same as the last 64 bits, the
key is weak. Attempting to set a weak key results in a
CryptographicException.So you may consider other way other than TripleDES.

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top