Class KeyQualityAssessor

java.lang.Object
de.das.encrypter.tools.KeyQualityAssessor

public class KeyQualityAssessor extends Object
Tool for determining a quality to assess the keys.
  • Field Details

  • Constructor Details

    • KeyQualityAssessor

      public KeyQualityAssessor()
  • Method Details

    • determineQuality

      public Double[] 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.
      Parameters:
      key - the key whose quality is to be evaluated.
      Returns:
      an array of two numbers for evaluating the quality of the specified key.