public class SaltedDigestSha1 extends Object implements SaltedDigest
| Constructor and Description |
|---|
SaltedDigestSha1() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDigest(String secret,
String salt)
Returns a salted hash of the submitted secret.
|
String |
getSalt()
Generates a random salt.
|
public String getDigest(String secret, String salt)
SaltedDigestgetDigest in interface SaltedDigestsecret - The cleartext secret.salt - The salt which should have been generated by the SaltedDigest.getSalt() method of the
respective implementation.public String getSalt()
SaltedDigestSaltedDigest.getDigest(String, String) method of
the respective implementation.getSalt in interface SaltedDigestCopyright © 2011–2023 aiticon GmbH. All rights reserved.