Interface B2Md5


  • public interface B2Md5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int HEX_MD5_SIZE  
      static int MD5_SIZE  
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static byte[] binaryMd5OfBytes​(byte[] bytes)
      Returns the binary digest of an array of bytes
      static byte[] binaryMd5OfBytes​(byte[] bytes, int offset, int length)
      Returns the binary digest of a subsequence of an array of bytes
      static java.security.MessageDigest getMd5MessageDigest()
      Returns an MD5 MessageDigest, which we expect to always be available.
      static java.lang.String hexMd5OfBytes​(byte[] bytes)
      Returns the hex digest of an array of bytes.
      static java.lang.String hexMd5OfBytes​(byte[] bytes, int offset, int length)
      Returns the hex digest of an array of bytes.
    • Method Detail

      • getMd5MessageDigest

        static java.security.MessageDigest getMd5MessageDigest()
        Returns an MD5 MessageDigest, which we expect to always be available.
      • binaryMd5OfBytes

        static byte[] binaryMd5OfBytes​(byte[] bytes)
        Returns the binary digest of an array of bytes
      • binaryMd5OfBytes

        static byte[] binaryMd5OfBytes​(byte[] bytes,
                                       int offset,
                                       int length)
        Returns the binary digest of a subsequence of an array of bytes
      • hexMd5OfBytes

        static java.lang.String hexMd5OfBytes​(byte[] bytes)
        Returns the hex digest of an array of bytes.
      • hexMd5OfBytes

        static java.lang.String hexMd5OfBytes​(byte[] bytes,
                                              int offset,
                                              int length)
        Returns the hex digest of an array of bytes.