crypto.createHash(options)
Method Description |
Creates a new crypto.Hash object. |
Returns |
A crypto.Hash object. |
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 |
Since |
---|---|---|---|---|
|
string |
required |
The hash algorithm. Use the crypto.HashAlg enum to set the value. |
2015.2 |
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 hashObj = crypto.createHash({
algorithm: crypto.HashAlg.SHA256
});
...
//Add additional code