Class ByteArrayUtils

java.lang.Object
org.pkl.core.util.ByteArrayUtils

public final class ByteArrayUtils extends Object
  • Method Details

    • base64

      public static String base64(byte[] input)
    • md5

      public static String md5(byte[] input)
    • sha1

      public static String sha1(byte[] input)
    • sha256

      public static String sha256(byte[] input)
    • sha256Int

      public static long sha256Int(byte[] input)
    • toHex

      public static String toHex(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.