A factory for creating hash algorithm instances.
import { sha256, sha512 } from 'rsa-oaep-encryption';// sha256 and sha512 are HashAlgorithmCreator instancesconst hash1 = sha256.create();const hash2 = sha512.create(); Copy
import { sha256, sha512 } from 'rsa-oaep-encryption';// sha256 and sha512 are HashAlgorithmCreator instancesconst hash1 = sha256.create();const hash2 = sha512.create();
Creates a new hash algorithm instance.
A fresh HashAlgorithm instance ready for use.
A factory for creating hash algorithm instances.
Example