Class ScryptParams


  • public class ScryptParams
    extends Object
    Parameters governing Scrypt algorithm. Allows to be converted to Map, useful as copy of parameters needs to be stored with particular hashed password information.
    Author:
    K. Benedyczak
    • Constructor Detail

      • ScryptParams

        public ScryptParams​(int workFactor,
                            int blockSize,
                            int parallelization,
                            int length)
      • ScryptParams

        public ScryptParams()
      • ScryptParams

        public ScryptParams​(int workFactor)
    • Method Detail

      • sanitize

        public void sanitize()
      • getWorkFactor

        public int getWorkFactor()
      • getBlockSize

        public int getBlockSize()
      • getParallelization

        public int getParallelization()
      • getLength

        public int getLength()
      • hasStrongerRequirementsThen

        public boolean hasStrongerRequirementsThen​(ScryptParams other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object