public class SHAConverter
extends java.lang.Object
Constructor and Description |
---|
SHAConverter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getEncoded(java.lang.String algorithm,
java.lang.String pswToHash,
java.nio.charset.Charset charset)
This static method take algorithm, pswToHash, charset parameters for encoding and return hashed string.
|
public static java.lang.String getEncoded(java.lang.String algorithm, java.lang.String pswToHash, java.nio.charset.Charset charset)
algorithm
- Algorithm string value for encoding like SHA-256pswToHash
- String value to be encodedcharset
- Charset instance like UTF_8