Constructor
new Hash256(settings)
Create an instance of a `Hash256` object by calling `new Hash256()`,
where `settings` can be provided to supply a particular input object.
If the `settings` is not a string, `input` must be provided.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
settings |
Object |
Properties
|
- Source:
Methods
(static) digest(input) → {String}
Produce a SHA256 digest of some input data.
Parameters:
Name | Type | Description |
---|---|---|
input |
String | Buffer | Content to digest. |
- Source:
Returns:
`SHA256(input)` as a hexadecimal string.
- Type
- String
(static) reverse()
Reverses the bytes of the digest.
- Source: