Hmac.digest(options)
Method Description |
Returns the computed digest. |
Returns |
An hmac value as a string. |
Supported Script Types |
Server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2015.2 |
Parameters
The options parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
optional |
Specifies the encoding of the output string. Use the encode.Encoding enum to set the value. The default value is |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/crypto Module Script Samples.
//Add additional code
...
var digestSHA512 = hmacSHA512.digest({
outputEncoding: encode.Encoding.BASE_64
});
...
//Add additional code