Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using System.Security.Cryptography
Message
De
16/11/2003 14:34:39
 
 
À
16/11/2003 13:53:50
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00850467
Message ID:
00850471
Vues:
19
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform