HashProviderFactory

HashProviderFactory implements a class factory for hash providers.

Namespace:
KpokPatagon.Security.Cryptography
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
Yes

Methods

Create

Creates a new instance of an IHashProvider using the SHA512 algorithm with salt addition enabled.

Signature:
public IHashProvider Create()

Create

Creates a new instance of an IHashProvider.

Signature:
public IHashProvider Create(options)
Parameters
Name Type Summary
options CryptographyOptions Configuration options.

Create

Creates a new instance of a IHashProvider based on the algorithm.

Signature:
public IHashProvider Create(algorithm, saltEnabled)
Remarks

If algorithm is null, a default SHA512 hash algorithm will be created.

Parameters
Name Type Summary
algorithm HashAlgorithm The HashAlgorithm.
saltEnabled Boolean true if salt addition should be enabled.

In this document