All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.crypto.key.AbstractGetKeyLength Maven / Gradle / Ivy

package io.github.mmm.crypto.key;

/**
 * Interface to {@link #getKeyLength() get} the {@link #getKeyLength() key-length}.
 *
 * @since 1.0.0-beta1
 */
public interface AbstractGetKeyLength {

  /**
   * @return the length of the key in bits. The bigger the key length the stronger and more secure the encryption but
   *         also the more performance is required for computation. Reasonable values depend on the
   *         {@link io.github.mmm.crypto.algorithm.CryptoAlgorithm#getAlgorithm() algorithm}: A recent value for
   *         RSA is 4096 bits while for PBKDF2 256 is sufficient. However, recommended and secure values change over
   *         time as computing power is increasing. Therefore you should research the web to find an accurate value.
   */
  int getKeyLength();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy