public class Utils
extends java.lang.Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
base64Encode(java.lang.String data)
Encode the given string with Base64
|
static java.lang.String |
hexStringify(byte[] data)
Convert a byte array to its hex-string
|
static boolean |
isSyncEnabled(org.gradle.api.Project project) |
static byte[] |
sha256Hash(byte[] data)
Compute the SHA-256 hash of the given byte array
|
public static java.lang.String base64Encode(java.lang.String data)
throws java.io.UnsupportedEncodingException
data - the string to encodejava.io.UnsupportedEncodingExceptionpublic static byte[] sha256Hash(byte[] data)
throws java.security.NoSuchAlgorithmException
data - the byte array to hashjava.security.NoSuchAlgorithmExceptionpublic static java.lang.String hexStringify(byte[] data)
data - the byte array to convertpublic static boolean isSyncEnabled(org.gradle.api.Project project)