SHA256

SHA256

new SHA256()

Methods

fromString(hexStr)

Inherited From:

hex string to crypto.

Parameters:
Name Type Description
hexStr

a hex string.

hash(data)

to calculate hash.

Parameters:
Name Type Description
data

a string to calculate hash.

toString()

Inherited From:

crypto result to hex string.

SHA256

new SHA256()

Calculate hash of a string with SHA256.

Example
import { SHA256 } from "ultrain-ts-lib/src/crypto";

Extends

Methods

fromString(hexStr)

Inherited From:

hex string to crypto.

Parameters:
Name Type Description
hexStr

a hex string.

hash(data)

to calculate hash.

Parameters:
Name Type Description
data

a string to calculate hash.

toString()

Inherited From:

crypto result to hex string.