app/src/main/java/com/example/administrator/newmovie/Utils/StringUtils.java
/**
     * Convert the hash bytes to hex digits string
     *
     * @param hashBytes
     * @return The converted hex digits string
     */
Convert the hash bytes to hex digits string
@param hashBytes
@return The converted hex digits string
Convert the hash bytes to hex digits string @param hashBytes @return The converted hex digits string
public static String hashToString(byte[] hashBytes) {
        String returnVal = "";
        for (int i = 0; i < hashBytes.length; i++) {
            returnVal += Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1);
        }
        return returnVal.toLowerCase();
    }
public static String hashToString ( byte [ ] hashBytes ) { String returnVal = "" ; for ( int i = 0 ; i < hashBytes . length ; i ++ ) { returnVal += Integer . toString ( ( hashBytes [ i ] & 0xff ) + 0x100 , 16 ) . substring ( 1 ) ; } return returnVal . toLowerCase ( ) ; }
Convert the hash bytes to hex digits string
 @param hashBytes
 @return The converted hex digits string
Convert the hash bytes to hex digits string @param hashBytes @return The converted hex digits string