HashAlgorithmProvider.OpenAlgorithm(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a HashAlgorithmProvider object and opens the specified algorithm for use.
public:
static HashAlgorithmProvider ^ OpenAlgorithm(Platform::String ^ algorithm);
static HashAlgorithmProvider OpenAlgorithm(winrt::hstring const& algorithm);
public static HashAlgorithmProvider OpenAlgorithm(string algorithm);
function openAlgorithm(algorithm)
Public Shared Function OpenAlgorithm (algorithm As String) As HashAlgorithmProvider
Parameters
- algorithm
-
String
Platform::String
winrt::hstring
Algorithm name.
Returns
Represents a provider that implements hash algorithms.
Remarks
The following hashing algorithm names are supported:
- HashAlgorithmNames.Md5
- HashAlgorithmNames.Sha1
- HashAlgorithmNames.Sha256
- HashAlgorithmNames.Sha384
- HashAlgorithmNames.Sha512