com.luckymarmot.HMACDynamicValue
Argument: input: DynamicString: None
Text input to be hashed.
Argument: key: DynamicString: None
Secret cryptographic key to be used.
Argument:
algorithm: number: ``0`` (MD5)
Cryptographic hash function to be used (0: MD5, 1: SHA1, 2: SHA224, 3: SHA256, 4: SHA384, 5: SHA512).
0
(MD5)
Argument:
encoding: string: ``Base64``
Encoding (Base64, Hexadecimal)
Base64
Argument:
uppercase: bool: ``false``
Whether text output should be in uppercase.
false
function evaluate(context){
var dv = new DynamicValue('com.luckymarmot.HMACDynamicValue', {
'input': 'Hello World!',
'key': 'supersecretkeynobodyknows',
'algorithm': 1 /* SHA1 */
});
return dv.getEvaluatedString();
};