Gets/Sets the preferred symmetric key algorithm used by all methods that produce encrypted OpenPGP messages (Encrypt, SignAndEncrypt).
Changes to this property have effect on subsequent calls of encryption methods
Namespace: DidiSoft.PgpChanges to this property have effect on subsequent calls of encryption methods
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public CypherAlgorithm Cypher { get; set; } |
| Visual Basic |
|---|
Public Property Cypher As CypherAlgorithm Get Set |
| Visual C++ |
|---|
public: property CypherAlgorithm Cypher { CypherAlgorithm get (); void set (CypherAlgorithm value); } |
Remarks
Default is CAST5
Examples
This example demonstrates how to change the preferred cipher algorithm used by the library.
CopyC#
CopyVB.NET
PGPLib pgp = new PGPLib();
pgp.Cypher = CypherAlgorithm.TRIPLE_DES;Dim pgp As New PGPLib() pgp.Cypher = CypherAlgorithm.TRIPLE_DES