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. | |
Password hashing and verification primitives for Ether.
| record dev.rafex.ether.crypto.password.PasswordHash | ( | byte[] | hash, |
| byte[] | salt, | ||
| int | iterations ) |
Immutable password hash material.
| hash | The derived key bytes. |
| salt | The random salt bytes. |
| iterations | The number of PBKDF2 iterations. |
Constructs a new PasswordHash and defensively copies the input arrays.
Returns a defensive copy of the hash bytes.
Returns a defensive copy of the 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().