我需要进入我的derby数据库的密码是他们当前字符串的哈希值。我怎样才能做到这一点?
app.config['SQLALCHEMY_POOL_SIZE'] = 100
app.config['SQLALCHEMY_POOL_RECYCLE'] = 280
另外,如何在用户登录时验证哈希值?这是我的验证方法。
String sql = "insert into MPP_USERS "
+ " (LAST_NAME, FIRST_NAME,EMAIL_ADDRESS,PASSWORD)" + " values (?, ?, ?, ?)";
ps= con.prepareStatement(sql);
ps.setString(1, lastname);
ps.setString(2, firstname);
ps.setString(3, email);
ps.setString(4,password);
System.out.println("Insert complete.");
ps.executeUpdate();
System.out.println("Insert complete.");