public abstract class Base64EncodedHashDigest extends Object
Constructor and Description |
---|
Base64EncodedHashDigest() |
Modifier and Type | Method and Description |
---|---|
boolean |
check(String password,
String encrypted) |
protected byte[] |
createByteHash(String password) |
protected MessageDigest |
createDigestInstance() |
protected String |
encodeHash(byte[] hash) |
String |
encrypt(String password) |
protected abstract String |
hashAlgorithmName()
allows subclasses to select the hash algorithm
|
protected byte[] createByteHash(String password)
protected MessageDigest createDigestInstance()
protected String encodeHash(byte[] hash)
protected abstract String hashAlgorithmName()
Copyright © 2021. All rights reserved.