Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
Package dev.rafex.ether.crypto.password

Password hashing and verification primitives for Ether. More...

Classes

interface  PasswordHasher
 Contract for password hashing and verification. More...
class  PasswordHasherPBKDF2
 PBKDF2-HMAC-SHA256 password hasher ported from Kiwi and HouseDB. More...

Functions

record PasswordHash (byte[] hash, byte[] salt, int iterations)
 Immutable password hash material.

Detailed Description

Password hashing and verification primitives for Ether.

Function Documentation

◆ PasswordHash()

record dev.rafex.ether.crypto.password.PasswordHash ( byte[] hash,
byte[] salt,
int iterations )

Immutable password hash material.

Parameters
hashThe derived key bytes.
saltThe random salt bytes.
iterationsThe number of PBKDF2 iterations.

Constructs a new PasswordHash and defensively copies the input arrays.

Returns a defensive copy of the hash bytes.

Returns
A copy of the derived key bytes.

Returns a defensive copy of the salt bytes.

Returns
A copy of the random salt bytes.

Definition at line 38 of file PasswordHash.java.

References PasswordHash().

Referenced by dev.rafex.ether.crypto.password.PasswordHasher.hash(), dev.rafex.ether.crypto.password.PasswordHasherPBKDF2.hash(), and PasswordHash().

Here is the call graph for this function:
Here is the caller graph for this function: