Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using System.Security.Cryptography
Message
From
16/11/2003 14:34:39
 
 
To
16/11/2003 13:53:50
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00850467
Message ID:
00850471
Views:
20
I seriously doubt that your client requested to have 256-bit keys yet takes no exception to your using an antiquated 56-bit algorithm for the actual encryption. This doesn't make sense. 56-bit DES is still good enough for many 'normal' applications and you can extend this to 112 bits by using triple DES, but modern algorithms like Blowfish, AES etc are better in this case and any decent crypto library should have them.

You aren't trying to use raw passwords/passphrases as encryption keys, are you? If so then I recommend passing the raw password through a hash function like MD5 or SHA and folding the output of the hash function down to the required key size (although a simple left(hash, desiredKeySize) will be quite as effective). DES has certain weak keys that should be avoided so you'd get better results easier by using another crypto algorithm.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform