HashProviderFactory implements a class factory for hash providers.
Creates a new instance of an IHashProvider using the SHA512 algorithm with salt addition enabled.
public IHashProvider Create()Creates a new instance of an IHashProvider.
public IHashProvider Create(options)| Name | Type | Summary |
|---|---|---|
| options | CryptographyOptions | Configuration options. |
Creates a new instance of a IHashProvider based on the algorithm.
public IHashProvider Create(algorithm, saltEnabled)If algorithm is null, a default SHA512 hash algorithm will be created.
| Name | Type | Summary |
|---|---|---|
| algorithm | HashAlgorithm | The HashAlgorithm. |
| saltEnabled | Boolean | true if salt addition should be enabled. |