digest
Message digest function.
Return
the digest.
Parameters
algorithm
must one of Algorithm.SHA256, Algorithm.SHA384, Algorithm.SHA512.
message
the message to get a digest of.
Throws
if the given algorithm is not supported.
Message digest function.
Return
the digest.
Parameters
algorithm
must one of Algorithm.INSECURE_SHA1, Algorithm.SHA256, Algorithm.SHA384, Algorithm.SHA512.
message
the message to get a digest of.
Throws
if the given algorithm is not supported.