MCPcopy Create free account
hub / github.com/FongMi/TV / md5

Method md5

catvod/src/main/java/com/github/catvod/utils/Util.java:65–77  ·  view source on GitHub ↗
(String src)

Source from the content-addressed store, hash-verified

63 }
64
65 public static String md5(String src) {
66 try {
67 if (TextUtils.isEmpty(src)) return "";
68 MessageDigest digest = MessageDigest.getInstance("MD5");
69 byte[] bytes = digest.digest(src.getBytes(StandardCharsets.UTF_8));
70 BigInteger no = new BigInteger(1, bytes);
71 StringBuilder sb = new StringBuilder(no.toString(16));
72 while (sb.length() < 32) sb.insert(0, "0");
73 return sb.toString().toLowerCase();
74 } catch (NoSuchAlgorithmException e) {
75 return "";
76 }
77 }
78
79 public static String md5(File file) {
80 try {

Callers 11

md5Method · 0.95
addThunderTaskMethod · 0.95
callMethod · 0.95
setRecentMethod · 0.95
parseJarMethod · 0.95
dexMethod · 0.95
getSpiderMethod · 0.95
jarMethod · 0.95
digestMethod · 0.95
digestResponseMethod · 0.95
equalsMethod · 0.95

Calls 9

getInstanceMethod · 0.80
isEmptyMethod · 0.45
digestMethod · 0.45
toStringMethod · 0.45
insertMethod · 0.45
readMethod · 0.45
updateMethod · 0.45
appendMethod · 0.45
substringMethod · 0.45

Tested by

no test coverage detected