In a method of creating I am encrypting a password and saving it in a database, now in a validation method I get that string but I do not know how to decrypt it. I'm using the commons codec library of apache. How do I do it? in this way the encrypted
String clave = DigestUtils.sha1Hex(pass);
in this way I opted for the bd
while (rs.next()) {
passw = (rs.getString("Pass"));
}