Package 

Interface PwHash.Lazy

    • Method Detail

      • cryptoPwHash

         abstract String cryptoPwHash(String password, int cryptoPwHashLen, Array<byte> salt, long opsLimit, NativeLong memLimit, PwHash.Alg alg)

        Hashes a given password.

        Parameters:
        password - The password to hash.
        cryptoPwHashLen - The hash size that you want.
        salt - A salt to use with the hash, generated randomly.
        opsLimit - The number of cycles to perform whilst hashing.
        memLimit - The amount of memory to use.
        alg - The algorithm to use.
      • cryptoPwHashString

         abstract String cryptoPwHashString(String password, long opsLimit, NativeLong memLimit)

        The most minimal way of hashing a given password to a standard-format string including all used parameters.We auto-generate the salt and use the default hashing algorithm PwHash.Alg.

        Parameters:
        password - The password string to hash.
        opsLimit - The number of cycles to perform whilst hashing.
        memLimit - The amount of memory to use.
      • cryptoPwHashStr

        @Deprecated() abstract String cryptoPwHashStr(String password, long opsLimit, NativeLong memLimit)

        The most minimal way of hashing a given password to a string including all used parameters.We auto-generate the salt and use the default hashing algorithm PwHash.Alg.

        Parameters:
        password - The password string to hash.
        opsLimit - The number of cycles to perform whilst hashing.
        memLimit - The amount of memory to use.
      • cryptoPwHashStrRemoveNulls

        @Deprecated() abstract String cryptoPwHashStrRemoveNulls(String password, long opsLimit, NativeLong memLimit)

        Hashes a string to a string representation including the used parameters, and removes alluseless null bytes. Uses the hashing algorithm PwHash.Alg.

        Parameters:
        password - The password string to hash.
        opsLimit - The number of cycles to perform whilst hashing.
        memLimit - The amount of memory to use.