We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.internal.
Class MessageDigestUtil
- java.lang.Object
-
- com.vaadin.flow.internal.MessageDigestUtil
-
public class MessageDigestUtil extends Object
Utility class for common
MessageDigest
operations.For internal use only. May be renamed or removed in a future release.
Since:
1.0
Author:
Vaadin Ltd
-
-
Method Detail
-
sha256
public static byte[] sha256(String string)
Calculates the SHA-256 hash of the UTF-16 representation of the given string.
Parameters:
string
- the string to hashReturns:
32 bytes making up the hash
-
-