Algorithm Class
Represents a cryptographic algorithm used for signing and encryption operations.
Inheritance Hierarchy
SystemObject
  MailBee.SecurityAlgorithm

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public class Algorithm

The Algorithm type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateInstanceById
Returns Algorithm object by the specified identifier.
Public methodStatic memberCreateInstanceByOid
Returns Algorithm object by the specified system object identifier.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCode exampleBitLength
Gets the length of key used for message encryption in the cryptographic algorithm.
Public propertyCategory
Gets the category (type) of cryptographic algorithm.
Public propertyCode exampleID
Gets the unique cryptographic algorithm identifier used by CryptoAPI.
Public propertyCode exampleName
Gets the name of cryptographic algorithm.
Public propertyCode exampleOid
Gets the unique string used by the operating system to identify this cryptographic algorithm.
Top
Remarks

MailBee automatically selects the appropriate algorithms accordingly Windows defaults.

Use this class only if the application logic requires using certain cryptographic algorithms. To select algorithms to be used by S/MIME functions of MailBee, set Smime.EncryptionAlgorithm or Smime.HashAlgorithm properties.

Examples
The example is available in EncryptionAlgorithm topic.
See Also