i am working on an struts application. I need to register a user and encrypt his Password in my DataBase. While the next time the user login, what am doing is to get his password from the html form and check it with the encrypted password from database.
But the passwordEncryptor.checkPassword is throwing me false.
Here is what am trying to do-:
while this works in simple Java program. The below gives me correct Login.