Package sop.util
Class HexUtil
java.lang.Object
sop.util.HexUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToHex(byte[] bytes) Encode a byte array to a hex string.static byte[]hexToBytes(String s) Decode a hex string into a byte array.
-
Constructor Details
-
HexUtil
public HexUtil()
-
-
Method Details
-
bytesToHex
Encode a byte array to a hex string.- Parameters:
bytes- bytes- Returns:
- hex encoding
- See Also:
-
hexToBytes
Decode a hex string into a byte array.- Parameters:
s- hex string- Returns:
- decoded byte array
- See Also:
-