Package org.pkl.core.util
Class ByteArrayUtils
java.lang.Object
org.pkl.core.util.ByteArrayUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringbase64(byte[] input) static Stringmd5(byte[] input) static Stringsha1(byte[] input) static Stringsha256(byte[] input) static longsha256Int(byte[] input) static StringtoHex(byte[] hash) Implemented directly instead of using JRE's `new BigInteger.toString(16)` so we can AOT-compile this and do not need a Truffle boundary.
-
Method Details
-
base64
-
md5
-
sha1
-
sha256
-
sha256Int
public static long sha256Int(byte[] input) -
toHex
Implemented directly instead of using JRE's `new BigInteger.toString(16)` so we can AOT-compile this and do not need a Truffle boundary.
-