public class HashUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
bytesToHexString(byte[] bytes)
Convert a byte array into a hex string.
|
static byte[] |
hexStringToByteArray(String s)
Convert a hex string into a byte[].
|
public static String bytesToHexString(byte[] bytes)
bytes - the bytespublic static byte[] hexStringToByteArray(String s)
s - the stringCopyright © 2016 JBoss by Red Hat. All rights reserved.