Package 

Interface Scrypt.Lazy

    • Method Detail

      • cryptoPwHashScryptSalsa208Sha256

         abstract String cryptoPwHashScryptSalsa208Sha256(String password, int hashLen, Array<byte> salt, long opsLimit, long memLimit)

        Hash a password using a salt.

        Parameters:
        password - The password string to hash.
        hashLen - The length of the resulting hash.
        salt - The salt to use.
        opsLimit - The number of cycles to perform whilst hashing.
        memLimit - The amount of memory to use.
      • cryptoPwHashScryptSalsa208Sha256Str

         abstract String cryptoPwHashScryptSalsa208Sha256Str(String password, long opsLimit, long memLimit)

        The most minimal way of hashing a given passwordusing Scrypt.

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

         abstract boolean cryptoPwHashScryptSalsa208Sha256StrVerify(String hash, String password)

        Verifies a string that was hashedusing Scrypt. This automatically addsa null byte at the end if there isn't one already.

        Parameters:
        hash - The hash with or without a null terminating byte.
        password - The password