Class SCrypt

  • All Implemented Interfaces:
    KDF, SCrypt

    public class SCrypt
    extends java.lang.Object
    implements SCrypt
    • Constructor Summary

      Constructors 
      Constructor Description
      SCrypt()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getKey​(byte[] pass, int size)  
      void init​(byte[] salt, int cost, int blocksize, int parallel)  
      • Methods inherited from class java.lang.Object

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

      • SCrypt

        public SCrypt()
    • Method Detail

      • init

        public void init​(byte[] salt,
                         int cost,
                         int blocksize,
                         int parallel)
                  throws java.lang.Exception
        Specified by:
        init in interface SCrypt
        Throws:
        java.lang.Exception
      • getKey

        public byte[] getKey​(byte[] pass,
                             int size)
        Specified by:
        getKey in interface KDF