Package eirb.pub.app.utils
Class Digest
java.lang.Object
eirb.pub.app.utils.Digest
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Digest
public Digest()
-
-
Method Details
-
decodeB64
Decode a b64 encoded string in bytes- Parameters:
string- encoded string- Returns:
- decoded bytes
-
encodeB64
Encode bytes and return the B64 string representation- Parameters:
bytes- decoded bytes- Returns:
- String representation of the b64
-
sha256
public static byte[] sha256(byte[] bytes) Get SHA 256 hash- Parameters:
bytes- plain bytes- Returns:
- hash of the bytes
-
bytesToHex
-