AlgorithmCreateInstanceByOid Method
Returns Algorithm object by the specified system object identifier.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public static Algorithm CreateInstanceByOid(
	string 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.

To view the full list of encryption and hash algorithms, refer to CRYPT_ALGORITHM_IDENTIFIER page of MSDN library.

For instance, to obtain RC4 algorithm (used for encryption), pass "1.2.840.113549.3.4" string to this method.

Or, to obtain MD5 hash algorithm (used for signing), pass "1.2.840.113549.1.1.4" string instead.

Note Note
RC4 and MD5 will not be available if the current system is FIPS compliant. They are considered weak.
See Also