Encrypts given String in ASCII format.

Namespace:  DidiSoft
Assembly:  PGPLib (in PGPLib.dll) Version: 1.6.3.19546

Syntax

C#
public string EncryptString(
	string stringToEncrypt,
	KeyStore keyStore,
	long keyId
)
Visual Basic (Declaration)
Public Function EncryptString ( _
	stringToEncrypt As String, _
	keyStore As KeyStore, _
	keyId As Long _
) As String
Visual C++
public:
String^ EncryptString(
	String^ stringToEncrypt, 
	KeyStore^ keyStore, 
	long long keyId
)

Parameters

stringToEncrypt
Type: System..::.String
plain text string to be encrypted
keyStore
Type: DidiSoft..::.KeyStore
KeyStore holding the enryption key
keyId
Type: System..::.Int64
Encryption key Id

Return Value

the encrypted string

Remarks

Compression algorithm used is the one specified through Compression
Symmetric cipher algorithm used is the one specified through Cypher

See Also