public class MessageDigestUtil extends Object
MessageDigest
operations.
For internal use only. May be renamed or removed in a future release.
Modifier and Type | Method and Description |
---|---|
static byte[] |
sha256(String string)
Calculates the SHA-256 hash of the UTF-16 representation of the given
string.
|
public static byte[] sha256(String string)
string
- the string to hashCopyright © 2023. All rights reserved.