// // 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); } }