Repository navigation
CryptoDigest Methods
Methods to hash data with different digests.
Creates a MD5 based Hashed Message Authentication Code (HMAC) Base64 encoded.
String CryptoDigest.hmacMd5(String keyB64, dataB64)
| Name | Type | Description |
|---|---|---|
| keyB64 | String | Base64 encoded secret key |
| dataB64 | String | Base64 encoded data to sign |
Creates a SHA-1 based Hashed Message Authentication Code (HMAC) Base64 encoded.
String CryptoDigest.hmacSha1(String keyB64, dataB64)
| Name | Type | Description |
|---|---|---|
| keyB64 | String | Base64 encoded secret key |
| dataB64 | String | Base64 encoded data to sign |
Creates a SHA-256 based Hashed Message Authentication Code (HMAC) Base64 encoded.
String CryptoDigest.hmacSha256(String keyB64, dataB64)
| Name | Type | Description |
|---|---|---|
| keyB64 | String | Base64 encoded secret key |
| dataB64 | String | Base64 encoded data to sign |
Creates a SHA-384 based Hashed Message Authentication Code (HMAC) Base64 encoded.
String CryptoDigest.hmacSha384(String keyB64, dataB64)
| Name | Type | Description |
|---|---|---|
| keyB64 | String | Base64 encoded secret key |
| dataB64 | String | Base64 encoded data to sign |
Creates a SHA-512 based Hashed Message Authentication Code (HMAC) Base64 encoded.
String CryptoDigest.hmacSha512(String keyB64, dataB64)
| Name | Type | Description |
|---|---|---|
| keyB64 | String | Base64 encoded secret key |
| dataB64 | String | Base64 encoded data to sign |
Creates a Base64 encoded 128 bit MD5 hash from plain string.
String CryptoDigest.md5(String data)
| Name | Type | Description |
|---|---|---|
| data | String | Plain string data to hash |
Creates a Base64 encoded 128 bit MD5 hash from Base64 encoded data. Compatible with non-string data
String CryptoDigest.md5Base64(String dataB64)
| Name | Type | Description |
|---|---|---|
| dataB46 | String | Base64 encoded data to hash |
Creates a Base64 encoded 160 bit SHA-1 hash from plain string.
String CryptoDigest.sha1(String data)
| Name | Type | Description |
|---|---|---|
| data | String | Plain string data to hash |
Creates a Base64 encoded 160 bit SHA-1 hash from Base64 encoded data. Compatible with non-string data
String CryptoDigest.sha1Base64(String dataB64)
| Name | Type | Description |
|---|---|---|
| dataB46 | String | Base64 encoded data to hash |
Creates a Base64 encoded 256 bit SHA-256 hash from plain string.
String CryptoDigest.sha256(String data)
| Name | Type | Description |
|---|---|---|
| data | String | Plain string data to hash |
Creates a Base64 encoded 256 bit SHA-256 hash from Base64 encoded data. Compatible with non-string data
String CryptoDigest.sha256Base64(String dataB64)
| Name | Type | Description |
|---|---|---|
| dataB46 | String | Base64 encoded data to hash |
Creates a Base64 encoded 384 bit SHA-384 hash from plain string.
String CryptoDigest.sha384(String data)
| Name | Type | Description |
|---|---|---|
| data | String | Plain string data to hash |
Creates a Base64 encoded 384 bit SHA-384 hash from Base64 encoded data. Compatible with non-string data
String CryptoDigest.sha384Base64(String dataB64)
| Name | Type | Description |
|---|---|---|
| dataB46 | String | Base64 encoded data to hash |
Creates a Base64 encoded 512 bit SHA-512 hash from plain string.
String CryptoDigest.sha512(String data)
| Name | Type | Description |
|---|---|---|
| data | String | Plain string data to hash |
Creates a Base64 encoded 512 bit SHA-512 hash from Base64 encoded data. Compatible with non-string data
String CryptoDigest.sha512Base64(String dataB64)
| Name | Type | Description |
|---|---|---|
| dataB46 | String | Base64 encoded data to hash |