SparkDigest
Returns a reference to a SparkDigest object.
Implements a number of hashing functions similar to those found in CryptoJS.
example
Spark.getDigester();
hmacMd5Base64
signature hmacMd5Base64(string key, string valueToDigest)
returns string
Returns a HmacMD5 Message Authentication Code (MAC) as a base64 encoded string for the given key and value.
hmacMd5Base64WithBase64Key
signature hmacMd5Base64WithBase64Key(string key, string valueToDigest)
returns string
Returns a HmacMD5 Message Authentication Code (MAC) as a base64 encoded string for the given base64 encoded key and value.
hmacMd5Hex
signature hmacMd5Hex(string key, string valueToDigest)
returns string
Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given key and value.
hmacMd5HexWithHexKey
signature hmacMd5HexWithHexKey(string key, string valueToDigest)
returns string
Returns a HmacMD5 Message Authentication Code (MAC) as a hex string (lowercase) for the given hex encoded key and value.
hmacSha1Base64
signature hmacSha1Base64(string key, string valueToDigest)
returns string
Returns a HmacSHA1 Message Authentication Code (MAC) as a base64 encoded string for the given key and value.
hmacSha1Base64WithBase64Key
signature hmacSha1Base64WithBase64Key(string key, string valueToDigest)
returns string
Returns a HmacSHA1 Message Authentication Code (MAC) as a base64 encoded string for the given base64 encoded key and value.
hmacSha1Hex
signature hmacSha1Hex(string key, string valueToDigest)
returns string
Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.
hmacSha1HexWithHexKey
signature hmacSha1HexWithHexKey(string key, string valueToDigest)
returns string
Returns a HmacSHA1 Message Authentication Code (MAC) as hex string (lowercase) for the given hex encoded key and value.
hmacSha256Base64
signature hmacSha256Base64(string key, string valueToDigest)
returns string
Returns a HmacSHA256 Message Authentication Code (MAC) as a base64 encoded string for the given key and value.
hmacSha256Base64WithBase64Key
signature hmacSha256Base64WithBase64Key(string base64Key, string valueToDigest)
returns string
Returns a HmacSHA256 Message Authentication Code (MAC) as a base64 encoded string for the given base64 encoded key and value.
hmacSha256Hex
signature hmacSha256Hex(string key, string valueToDigest)
returns string
Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.
hmacSha256HexWithHexKey
signature hmacSha256HexWithHexKey(string key, string valueToDigest)
returns string
Returns a HmacSHA256 Message Authentication Code (MAC) as hex string (lowercase) for the given hex encoded key and value.
hmacSha384Base64
signature hmacSha384Base64(string key, string valueToDigest)
returns string
Returns a HmacSHA384 Message Authentication Code (MAC) as a base64 encoded string for the given key and value.
hmacSha384Base64WithBase64Key
signature hmacSha384Base64WithBase64Key(string key, string valueToDigest)
returns string
Returns a HmacSHA384 Message Authentication Code (MAC) as a base64 encoded string for the given base64 encoded key and value.
hmacSha384Hex
signature hmacSha384Hex(string key, string valueToDigest)
returns string
Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.
hmacSha384HexWithHexKey
signature hmacSha384HexWithHexKey(string key, string valueToDigest)
returns string
Returns a HmacSHA384 Message Authentication Code (MAC) as hex string (lowercase) for the given hex encoded key and value.
hmacSha512Base64
signature hmacSha512Base64(string key, string valueToDigest)
returns string
Returns a HmacSHA512 Message Authentication Code (MAC) as a base64 encoded string for the given key and value.
hmacSha512Base64WithBase64Key
signature hmacSha512Base64WithBase64Key(string key, string valueToDigest)
returns string
Returns a HmacSHA512 Message Authentication Code (MAC) as a base64 encoded string for the given base64 encoded key and value.
hmacSha512Hex
signature hmacSha512Hex(string key, string valueToDigest)
returns string
Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given key and value.
hmacSha512HexWithHexKey
signature hmacSha512HexWithHexKey(string key, string valueToDigest)
returns string
Returns a HmacSHA512 Message Authentication Code (MAC) as hex string (lowercase) for the given hex encoded key and value.
md2Base64
signature md2Base64(string data)
returns string
Calculates the MD2 digest and returns the value as a a base64 encoded string.
md2Hex
signature md2Hex(string data)
returns string
Calculates the MD2 digest and returns the value as a 32 character hex string.
md5Base64
signature md5Base64(string data)
returns string
Calculates the MD5 digest and returns the value as a base64 encoded string.
md5Hex
signature md5Hex(string data)
returns string
Calculates the MD5 digest and returns the value as a 32 character hex string.
sha1Base64
signature sha1Base64(string data)
returns string
Calculates the SHA-1 digest and returns the value as a base64 encoded string.
sha1Hex
signature sha1Hex(string data)
returns string
Calculates the SHA-1 digest and returns the value as a hex string.
sha256Base64
signature sha256Base64(string data)
returns string
Calculates the SHA-256 digest and returns the value as a base64 encoded string.
sha256Hex
signature sha256Hex(string data)
returns string
Calculates the SHA-256 digest and returns the value as a hex string.
sha384Base64
signature sha384Base64(string data)
returns string
Calculates the SHA-384 digest and returns the value as a base64 encoded string.
sha384Hex
signature sha384Hex(string data)
returns string
Calculates the SHA-384 digest and returns the value as a hex string.
sha512Base64
signature sha512Base64(string data)
returns string
Calculates the SHA-512 digest and returns the value as a base64 encoded string.
sha512Hex
signature sha512Hex(string data)
returns string
Calculates the SHA-512 digest and returns the value as a hex string.