DESStatic: IsWeakKey

IsWeakKey

Determines if a key is considered weak.



 Public Function IsWeakKey(
	  ByRef RgbKey ( ) As Byte ) As Boolean

Parameters

RgbKey
[ByRef] Byte. The key to check for weakness.

Return Values

Boolean -  Returns True if the key weak, False otherwise.

Remarks

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.

See Also

Project CorLib Overview

Class DESStatic Overview