Java Hash String hashToHexString(byte[] hash)

Here you can find the source of hashToHexString(byte[] hash)

Description

hash To Hex String

License

Open Source License

Declaration

public static String hashToHexString(byte[] hash) 

Method Source Code

//package com.java2s;

public class Main {
    public static String hashToHexString(byte[] hash) {
        final StringBuilder hexString = new StringBuilder();
        for (byte mdbyte : hash) {
            hexString.append(Integer.toHexString(0xFF & mdbyte));
        }/*w w  w  .j  ava2s  . co m*/
        return hexString.toString();
    }
}

Related

  1. hashString(String str)
  2. hashTermToString(int i, int h)
  3. hasHtmlTag(String content)
  4. hasHTMLTag(String html)
  5. hasHTMLTag(String text)
  6. hashToString(byte hash[])
  7. hasHttp(String url)