public class Hash extends Object
Constructor and Description |
---|
Hash(byte[] hash,
byte[] salt)
Constructor with byte arrays.
|
Hash(String hash,
String salt)
Constructor with strings.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getHash()
Returns the hash.
|
String |
getHashAsString()
Returns the hash as a string.
|
byte[] |
getSalt()
Returns the salt.
|
String |
getSaltAsString()
Returns the salt as a string.
|
String |
toString()
Returns the Hash formatted as "hash:salt".
|
public Hash(byte[] hash, byte[] salt)
hash
- the hashed string.salt
- the salt used.public byte[] getHash()
public byte[] getSalt()
public String getHashAsString()
public String getSaltAsString()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.