The Sha2DigestParams interface defines the algorithm-specific parameters that should be passed into the digest() method when using the SHA-2 algorithm.
Sha2DigestParams
digest()
A string defining the name of hash function to use. The value must be one of the following:
"SHA-256"
Data to be digested.
The
Sha2DigestParams
interface defines the algorithm-specific parameters that should be passed into thedigest()
method when using the SHA-2 algorithm.