Class 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.String md5​(byte[] input)  
      static java.lang.String sha1​(byte[] input)  
      static java.lang.String sha256​(byte[] input)  
      static long sha256Int​(byte[] input)  
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteArrayUtils

        public ByteArrayUtils()
    • 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.