Class Argon2

  • All Implemented Interfaces:
    Argon2, KDF

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

      Constructors 
      Constructor Description
      Argon2()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getKey​(byte[] pass, int size)  
      void init​(byte[] salt, int iteration, int type, byte[] additional, byte[] secret, int memory, int parallelism, int version)  
      • Methods inherited from class java.lang.Object

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

      • Argon2

        public Argon2()
    • Method Detail

      • init

        public void init​(byte[] salt,
                         int iteration,
                         int type,
                         byte[] additional,
                         byte[] secret,
                         int memory,
                         int parallelism,
                         int version)
                  throws java.lang.Exception
        Specified by:
        init in interface Argon2
        Throws:
        java.lang.Exception
      • getKey

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