1821349743@qq.com
2023-02-20 a387ff8978bd0e738e83e0277cfa38d7c3ab3080
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
 
package com.product.data.sync.service.media;
 
 
public class EncrypUtil {
    public static String password = "123456";
 
    public EncrypUtil() {
    }
 
    public static String setFingerprint(String text) {
        String value = MD5Util.digest(text);
        return text + value;
    }
 
    public static boolean isFingerprint(String text) {
        if (text != null && !text.equals("")) {
            if (text.length() < 33) {
                return false;
            } else {
                String value = text.substring(0, text.length() - 32);
                return text.equals(setFingerprint(value));
            }
        } else {
            return false;
        }
    }
 
    public static String getFingerValue(String text) {
        if (text != null && !text.equals("")) {
            return text.length() < 33 ? null : text.substring(0, text.length() - 32);
        } else {
            return null;
        }
    }
 
    public static void main(String[] args) {
        String v = setFingerprint("6A0C140A");
        System.out.println(v);
        boolean v1 = isFingerprint(v);
        String v2 = getFingerValue(v);
        System.out.println(v1);
        System.out.println(v2);
    }
}