Class KeyConfig

    • Method Detail

      • getKeyLength

        public int getKeyLength()
        Specified by:
        getKeyLength in interface AbstractGetKeyLength
        Returns:
        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 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.