List of utility methods to do MD5
String | byteArrayMD5(byte[] entity) Computes the MD5 of a byte array. MessageDigest md5 = null; try { md5 = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { throw new RuntimeException("Could not load MD5", e); return toHexString(md5.digest(entity)); |
int[] | core_md5(int[] K, int F) cormd int[] X = new int[(((F + 64) >>> 9) << 4) + 14 + 2]; for (int i = 0; i < K.length; i++) { X[i] = K[i]; X[F >> 5] |= 128 << ((F) % 32); X[(((F + 64) >>> 9) << 4) + 14] = F; int J = 1732584193; int I = -271733879; ... |
String | decodeMd5(String source) decode Md if (source == null) { throw new NullPointerException(); String result = null; return result; |
String | decryMd5(String source) decry Md String s = convertMd5(source);
return convertMd5(s);
|
byte[] | digestMD5(byte[] data) digest MD return digest(data, ALGORITHM_MD5);
|
byte[] | digestMd5(final String value) Creates an MD5 hash of a String. final MessageDigest algorithm; try { algorithm = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); return algorithm.digest(value.getBytes()); |
byte[] | digestMD5(String buffer, String key) Digests the buffer with key using MD5 algorithm. MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.update(buffer.getBytes()); return md5.digest(key.getBytes()); |
String | digestMD5(String data) Digests the data with MD5 and returns the raw unencoded bytes. return getDigestedValue(MD5, data.getBytes());
|
String | digestMD5(String login, String pass) digest MD String input = login + pass; try { input = byteArrayToHexString(digest(input.getBytes(), "MD5")); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); return input; |
String | digestMd5(String plain) digest Md try { return digest(plain, "MD5"); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); |