![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to create a random generated DES key. But when I use the crypto service provider to create one the partity is wrong. The Key I am creating needs to be used outside the windows environment and so the partity needs to be correct or the device I am using will reject the key. DES des = DES.Create(); des.GenerateKey(); byte[] key = des.Key; The above code creates a 64 bit key that does not meet the DES standard ie the parity is wrong. .net appears to ignore parity all together which is fine within dotnet but not if you need to use the key elsewhere. Does anyone know a way to tell .net to do parity correctly as per the DES standard? |
. So, to set parity on your key,![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |