提交注册用户数据后出来这个,错误原因是update()必须指定要加密的字符串的字符编码
#encryptions1 = sha1()s1.update(upwd.encode("utf8"))upwd3 = s1.hexdigest()
Unicode-objects must be encoded before hash...
Objects.requireNonNull方法的源码是这样:
public static <T> T requireNonNull(T obj) {
if (obj == null)
throw new NullPointerException();
return obj;
}
曾几何时,我的想法是,...