private static String bytes2Hex(byte[] bytes) {
        String hs = "";
        String stmp = "";
        for (int n = 0; n < bytes.length; n++) {
            stmp = (Integer.toHexString(bytes[n] & 0XFF));
            if (stmp.length() == 1) {
                hs += "0" + stmp;
            } else {
                hs += stmp;
            }
        }
        return hs.toLowerCase(Locale.ENGLISH);
    }
Convert a chain of bytes into a {@link java.lang.String}

@param bytes The chain of bytes
@return The converted String
lib/src/main/java/com/github/omadahealth/lollipin/lib/encryption/Encryptor.java