public class PasswordEngine extends Object
| Constructor and Description |
|---|
PasswordEngine() |
PasswordEngine(int iterations) |
PasswordEngine(int iterations,
int saltLength,
int desiredKeyLength) |
| Modifier and Type | Method and Description |
|---|---|
String |
encrypt(String password) |
boolean |
match(String password,
String stored) |
public PasswordEngine()
public PasswordEngine(int iterations)
public PasswordEngine(int iterations,
int saltLength,
int desiredKeyLength)
public String encrypt(String password) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException, InvalidPasswordException
public boolean match(String password, String stored) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException
Copyright © 2019. All rights reserved.