Package de.das.encrypter.tools
Class KeyQualityAssessor
java.lang.Object
de.das.encrypter.tools.KeyQualityAssessor
Tool for determining a quality to assess the keys.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDouble[]determineQuality(byte[] key) Evaluates the quality of a key according to how equally distributed the occurring numerical values are as well as how equally distributed the distances of neighboring numerical values are.
-
Field Details
-
QUALITY
public static final int QUALITY- See Also:
-
SCATTERING
public static final int SCATTERING- See Also:
-
-
Constructor Details
-
KeyQualityAssessor
public KeyQualityAssessor()
-
-
Method Details
-
determineQuality
Evaluates the quality of a key according to how equally distributed the occurring numerical values are as well as how equally distributed the distances of neighboring numerical values are.- Parameters:
key- the key whose quality is to be evaluated.- Returns:
- an array of two numbers for evaluating the quality of the specified key.
-