MCPcopy Create free account
hub / github.com/bit4woo/ReSign / GetMD5Code

Method GetMD5Code

src/custom/CMD5.java:48–59  ·  view source on GitHub ↗
(String strObj)

Source from the content-addressed store, hash-verified

46 }
47
48 public static String GetMD5Code(String strObj) {
49 String resultString = null;
50 try {
51 resultString = new String(strObj);
52 MessageDigest md = MessageDigest.getInstance("MD5");
53 // md.digest() �ú�������ֵΪ��Ź�ϣֵ�����byte����
54 resultString = byteToString(md.digest(strObj.getBytes()));
55 } catch (NoSuchAlgorithmException ex) {
56 ex.printStackTrace();
57 }
58 return resultString;
59 }
60
61 public static void main(String[] args) {
62 CMD5 getMD5 = new CMD5();

Callers 3

calcSignMethod · 0.95
mainMethod · 0.95
actionPerformedMethod · 0.95

Calls 2

byteToStringMethod · 0.95
getInstanceMethod · 0.80

Tested by

no test coverage detected