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 subsequnt
Namespace:
DidiSoftChanges to this property have effect on subsequnt
Assembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public CypherAlgorithm Cypher { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property Cypher As CypherAlgorithm |
| 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