Package org.pkl.core.util
Class ByteArrayUtils
- java.lang.Object
-
- org.pkl.core.util.ByteArrayUtils
-
public class ByteArrayUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ByteArrayUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringmd5(byte[] input)static java.lang.Stringsha1(byte[] input)static java.lang.Stringsha256(byte[] input)static longsha256Int(byte[] input)static java.lang.StringtoHex(byte[] hash)Implemented directly instead of using JRE's `new BigInteger.toString(16)` so we can AOT-compile this and not need a truffle boundary.
-
-
-
Method Detail
-
md5
public static java.lang.String md5(byte[] input)
-
sha1
public static java.lang.String sha1(byte[] input)
-
sha256
public static java.lang.String sha256(byte[] input)
-
sha256Int
public static long sha256Int(byte[] input)
-
toHex
public static java.lang.String toHex(byte[] hash)
Implemented directly instead of using JRE's `new BigInteger.toString(16)` so we can AOT-compile this and not need a truffle boundary.
-
-