0

I have a problem with jasypt. It encrypts the password correctly, but if I try to check password it hangs and never comes out.

Any tip could help, thanks.

I'm working with tomcat 8. It does not work. Could it be a security issue?

public class CryptoLogica {

    public boolean validarPass(UsuarioDTO u,String pass) {
        //traer pass encrptado de bd
        StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();
        return passwordEncryptor.checkPassword(pass, u.getPass());
    }

    public String encriptarPass(String pass) {
        StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();
        return passwordEncryptor.encryptPassword(pass);
    }
}
René Vogt
  • 43,056
  • 14
  • 77
  • 99
S.Regusci
  • 63
  • 6
  • 1
    Are you sure u.getPass is not where the problem is? I'd pull that result into a separate variable, then pass it to the checkPassword method. – dbugger Dec 26 '15 at 03:08
  • Also, how does it store the SALT? – Elliott Frisch Dec 26 '15 at 03:26
  • I found the problem. i'm using two projects that use jasypt and one of them was missing the import of jasypt. the error was weird, and did not point to the cause. Thanks – S.Regusci Dec 26 '15 at 04:38

0 Answers0