public class Hashing extends Object
| Constructor and Description |
|---|
Hashing() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodePlainPassword(String plainPassword)
Utility method to hash and hex-encode a given String
|
static byte[] |
md5Hash(String text)
Utility method to hash a given String with MD5 algorithm
|
static String |
toHexString(byte[] data)
Utility method to hex-encode a given byte array
|
public static String encodePlainPassword(String plainPassword)
plainPassword - plain password to be hashed and encodedpublic static byte[] md5Hash(String text)
text - String to be hashedpublic static String toHexString(byte[] data)
data - data be encodedCopyright © 2018. All rights reserved.