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)
SaltedDigest
getDigest
in interface SaltedDigest
secret
- The cleartext secret.salt
- The salt which should have been generated by the SaltedDigest.getSalt()
method of the
respective implementation.public String getSalt()
SaltedDigest
SaltedDigest.getDigest(String, String)
method of
the respective implementation.getSalt
in interface SaltedDigest
Copyright © 2011–2019 aiticon GmbH. All rights reserved.