| AlgorithmCreateInstanceByOid Method |
Returns
Algorithm object by the specified system object identifier.
Namespace: MailBee.SecurityAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.6.0 build 690 for .NET 4.5
Syntaxpublic static Algorithm CreateInstanceByOid(
string oid
)
Public Shared Function CreateInstanceByOid (
oid As String
) As Algorithm
Parameters
- oid
- Type: SystemString
The string containing the object identifier (OID) of the cryptographic algorithm.
Return Value
Type:
Algorithm
The corresponding
Algorithm object, or a null reference (
Nothing in Visual Basic) if
no algorithm matching the specified OID was found.
RemarksTo view the full list of encryption and hash algorithms, refer to CRYPT_ALGORITHM_IDENTIFIER
page of MSDN library.
For instance, to obtain SHA512 algorithm (used for hashing), pass "2.16.840.1.101.3.4.2.3" string to this method.
See Also