于紫祥_1901
2020-11-18 de0d596acbf52dac0bbad75de7a809ee55ccc3b3
src/main/java/com/moral/common/util/Crypto.java
@@ -29,4 +29,8 @@
        }
        return newstr;
    }
    public static boolean checkpw(String plaintext, String hashed){
            hashed = hashed == null?"":hashed;
            return  hashed.equals(md5(plaintext));
    }
}