38public record
PasswordHash(
byte[] hash,
byte[] salt,
int iterations) {
44 hash = Arrays.copyOf(hash, hash.length);
45 salt = Arrays.copyOf(salt, salt.length);
54 public byte[] hash() {
55 return Arrays.copyOf(hash, hash.length);
64 public byte[] salt() {
65 return Arrays.copyOf(salt, salt.length);