Constructor and Description |
---|
Hash(String plainText,
String algorithm)
Method Hash.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Returns the algorithm.
|
static String |
getHashText(String plainText,
String algorithm)
Method getHashText.
|
String |
getPlainText()
Returns the plainText.
|
void |
setAlgorithm(String algorithm)
Sets the algorithm.
|
void |
setPlainText(String plainText)
Sets the plainText.
|
String |
toString() |
public String toString()
toString
in class Object
Object.toString()
public static String getHashText(String plainText, String algorithm) throws NoSuchAlgorithmException
plainText
- algorithm
- The algorithm to use like MD2, MD5, SHA-1, etc.NoSuchAlgorithmException
public String getAlgorithm()
public String getPlainText()
public void setAlgorithm(String algorithm)
algorithm
- The algorithm to setpublic void setPlainText(String plainText)
plainText
- The plainText to setCopyright © 2015 Lucee