public final class PasswordUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
check(String password,
String stored)
Checks whether given plaintext password corresponds
to a stored salted hash of the password.
|
static String |
gerarSenhaRandomica() |
static String |
getSaltedHash(String password)
Computes a salted PBKDF2 hash of given plaintext password.
|
static String |
hashMD5(String senha) |
public static String getSaltedHash(String password)
password - Senha em texto claro.public static boolean check(String password, String stored)
password - Senha em texto claro.stored - String SALT + Senha-cripografada gerada previamente.public static String gerarSenhaRandomica()
Copyright © 2018. All rights reserved.