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

Method hex2byte

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

Source from the content-addressed store, hash-verified

53 }
54
55 public static byte[] hex2byte(String s) {
56 byte[] bytes = new byte[s.length() / 2];
57 for (int i = 0; i < bytes.length; i++) bytes[i] = Integer.valueOf(s.substring(i * 2, i * 2 + 2), 16).byteValue();
58 return bytes;
59 }
60
61 public static boolean equals(String name, String md5) {
62 return md5(Path.jar(name)).equalsIgnoreCase(md5);

Callers 2

addKeysMethod · 0.95
cbcMethod · 0.95

Calls 2

valueOfMethod · 0.80
substringMethod · 0.45

Tested by

no test coverage detected