DESStatic: IsWeakKey |
Determines if a key is considered weak.
Public Function IsWeakKey( ByRef RgbKey ( ) As Byte ) As Boolean
DES has a set of keys known to be weak. The key to be tested is compared against this set of known weak keys.
The set of weak keys are:
"0101010101010101" "FEFEFEFEFEFEFEFE" "E0E0E0E0F1F1F1F1" "1F1F1F1F0E0E0E0E"
What makes these keys weak is if test encrypted with one of these keys is encrypted a second time, the original plain text would be produced.