public void doRegister() throws SQLException{
        PasswordService dps = new DefaultPasswordService();
         con = ds.getConnection();
         PreparedStatement ps = con.prepareStatement("insert into
user(username, password, email, fullname) values (?, ?, ?, ?)");
         String temp = dps.encryptPassword(password);
         ps.setString(1, userName);
         ps.setString(2, temp);
         ps.setString(3, emailAddress);
         ps.setString(4, "Test Test");
         ps.executeUpdate();
        //DatabaseOperations.initializeDB(this);
         System.out.println("AAAA  "+dps.passwordsMatch(password, temp));
         
    }

this outputs AAAA false

What is the problem?



--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Plain-password-and-encrypted-password-doesn-t-match-tp7579552.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to