GlideDigest - Scoped
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- API reference
The scoped GlideDigest class provides methods for creating a message digest from strings or input streams using MD5, SHA1, or SHA256 hash algorithms.
GlideDigest - GlideDigest()
Creates an instance of scoped GlideDigest.
Name | Type | Description |
---|---|---|
None |
GlideDigest - getMD5Base64(String source)
Creates a message digest from a string using the MD5 algorithm. The output string is in Base64.
Name | Type | Description |
---|---|---|
source | String | The source string. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getMD5Base64FromInputStream( GlideScriptableInputStream inputStream)
Creates a message digest from an input stream using the MD5 algorithm. The output string is in Base64.
Name | Type | Description |
---|---|---|
inputStream | GlideScriptableInputStream | The source input stream. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getMD5Hex(String source)
Creates a message digest from a string using the MD5 algorithm. The output string is in hexadecimal.
Name | Type | Description |
---|---|---|
source | String | The source string. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getMD5HexFromInputStream( GlideScriptableInputStream inputStream)
Creates a message digest from an input stream using the MD5 algorithm. The output string is in hexadecimal.
Name | Type | Description |
---|---|---|
inputStream | GlideScriptableInputStream | The source input stream. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA1Base64(String source)
Creates a message digest from a string using the SHA1 algorithm. The output string is in Base64.
Name | Type | Description |
---|---|---|
source | String | The source string. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA1Base64FromInputStream( GlideScriptableInputStream inputStream)
Creates a message digest from an input stream using the SHA1 algorithm. The output string is in Base64.
Name | Type | Description |
---|---|---|
inputStream | GlideScriptableInputStream | The source input stream. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA1Hex(String source)
Creates a message digest from a string using the SHA1 algorithm. The output string is in hexadecimal.
Name | Type | Description |
---|---|---|
source | String | The source string. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA1HexFromInputStream( GlideScriptableInputStream inputStream)
Creates a message digest from an input stream using the SHA1 algorithm. The output string is in hexadecimal.
Name | Type | Description |
---|---|---|
inputStream | GlideScriptableInputStream | The source input stream. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA256Base64(String source)
Creates a message digest from a string using the SHA256 algorithm. The output string is in Base64.
Name | Type | Description |
---|---|---|
source | String | The source string. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA256Base64FromInputStream( GlideScriptableInputStream inputStream)
Creates a message digest from an input stream using the SHA256 algorithm. The output string is in Base64.
Name | Type | Description |
---|---|---|
inputStream | GlideScriptableInputStream | The source input stream. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA256Hex(String source)
Creates a message digest from a string using the SHA256 algorithm. The output string is in hexadecimal.
Name | Type | Description |
---|---|---|
source | String | The source string. |
Type | Description |
---|---|
String | The message digest. |
Example
GlideDigest - getSHA256HexFromInputStream( GlideScriptableInputStream inputStream)
Creates a message digest from an input stream using the SHA256 algorithm. The output string is in hexadecimal.
Name | Type | Description |
---|---|---|
inputStream | GlideScriptableInputStream | The source input stream. |
Type | Description |
---|---|
String | The message digest. |
Example
On this page
- GlideDigest - GlideDigest()
- GlideDigest - getMD5Base64(String source)
- GlideDigest - getMD5Base64FromInputStream( GlideScriptableInputStream inputStream)
- GlideDigest - getMD5Hex(String source)
- GlideDigest - getMD5HexFromInputStream( GlideScriptableInputStream inputStream)
- GlideDigest - getSHA1Base64(String source)
- GlideDigest - getSHA1Base64FromInputStream( GlideScriptableInputStream inputStream)
- GlideDigest - getSHA1Hex(String source)
- GlideDigest - getSHA1HexFromInputStream( GlideScriptableInputStream inputStream)
- GlideDigest - getSHA256Base64(String source)
- GlideDigest - getSHA256Base64FromInputStream( GlideScriptableInputStream inputStream)
- GlideDigest - getSHA256Hex(String source)
- GlideDigest - getSHA256HexFromInputStream( GlideScriptableInputStream inputStream)