public class SHA512 extends Object implements HashProvider
| Modifier and Type | Method and Description |
|---|---|
String |
asHex()
Returns hex representation of the hash
|
static String |
asHex(byte[] hash)
Turns array of bytes into string representing each byte as unsigned hex number.
|
byte[] |
Final()
Returns hash value for input String
|
void |
Update(String s)
Update buffer with given string.
|
public SHA512()
public SHA512(String salt)
public void Update(String s) throws NullPointerException, IllegalStateException
HashProviderUpdate in interface HashProviders - String to be hashedNullPointerException - if inputValue is nullIllegalStateException - if inputValue is an empty Stringpublic byte[] Final()
throws NoSuchAlgorithmException
HashProviderFinal in interface HashProviderNoSuchAlgorithmExceptionpublic String asHex() throws IllegalStateException
HashProviderasHex in interface HashProviderIllegalStateExceptionpublic static String asHex(byte[] hash)
hash - Array of bytes to convert to hex-stringCopyright © 2001–2019 KnowGate. All rights reserved.