Class SCryptHasher

  • All Implemented Interfaces:
    Hasher

    public class SCryptHasher
    extends java.lang.Object
    implements Hasher
    • Constructor Summary

      Constructors 
      Constructor Description
      SCryptHasher​(int N_costFactor, int r_blocksize, int p_parallelization)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String hash​(java.lang.String plainSecret)  
      boolean verify​(java.lang.String plainSecret, java.lang.String hashedSecret)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SCryptHasher

        public SCryptHasher​(int N_costFactor,
                            int r_blocksize,
                            int p_parallelization)
    • Method Detail

      • hash

        public java.lang.String hash​(java.lang.String plainSecret)
        Specified by:
        hash in interface Hasher
      • verify

        public boolean verify​(java.lang.String plainSecret,
                              java.lang.String hashedSecret)
        Specified by:
        verify in interface Hasher