IP*Works! OpenPGP V9 - Online Help
IP*Works! OpenPGP V9
Questions / Feedback?

OpenPGP Component

Properties   Methods   Events   Configuration Settings   Errors  

The OpenPGP component is used to encrypt/decrypt and sign/verify PGP messages.

Syntax

nsoftware.IPWorksOpenPGP.Openpgp

Remarks

The OpenPGP component supports encrypting/decrypting and signing/verifying OpenPGP messages in the format specified by RFC 4880.

The Encrypt, Sign, and SignAndEncrypt methods are used to create a message to be sent to your partner. You can additionally create messages bound for multiple recipients with different keys, simultaneously encrypt and compress with the most popular compression algorithms, and control other aspects such as the encrypting algorithm to use.

When a message is received, the Decrypt, VerifySignature, and DecryptAndVerifySignature methods are used to process the incoming message.

The Keys property holds the key (with private key) used to sign and decrypt.

The SignerKeys property holds the key used to verify a signature.

The RecipientKeys property holds the key used to encrypt.

Input and Output Properties

The component will determine the source and destination of the input and output based on which properties are set.

The order in which the input properties are checked is as follows:

When a valid source is found the search stops. The order in which the output properties are checked is as follows:

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for further details.

ASCIIArmorSpecifies whether to use ASCII armor to encode the output message.
ClearSignatureSpecifies whether or not to create a cleartext signature.
CompressionMethodThe compression algorithm used.
DetachedSignatureSpecifies whether or not to generate a detached signature when signing a message.
EncryptingAlgorithmThe encryption algorithm used when encrypting.
InputFileThe file to process.
InputMessageThe message to process.
KeysA collection of keys used for cryptographic operations.
MessageHeadersA collection of headers in the ASCII armored message.
OutputFileThe output file.
OutputMessageThe output message after processing.
OverwriteIndicates whether or not the component should overwrite files.
RecipientKeysThe collection of keys belonging to the recipient of the message.
SignerKeysThe collection of keys belonging to the signer of the message.
SigningAlgorithmThe signature hash algorithm used when signing.

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting .
DecryptDecrypts the message.
DecryptAndVerifySignatureDecrypts and verifies the signature of the message.
EncryptEncrypts the message.
GetRecipientInfoGets recipient information for an encrypted message.
ResetResets the component properties.
SetInputStreamSets the stream from which the component will read data to encrypt or decrypt.
SetOutputStreamThe stream to which the component will write the fully encrypted or decrypted OpenPGP data.
SignSigns the message.
SignAndEncryptSigns and encrypts the current message.
VerifySignatureVerifies the signature of the current message.

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.

ErrorInformation about errors during data delivery.
KeyPassphraseFired if the passphrase of current key is incorrect or empty.
ProgressFired as progress is made.
RecipientInfoFired for each recipient key of the encrypted message.
SignatureInfoFired during verification of the signed message.
StatusShows the progress of the operation.
VerificationStatusFired after verification of the signed message.

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.

AllowEmptyInputWhether to allow empty files for input.
AllowOldPacketTypeWhether to allow the older encrypted packet type.
AutoSelectAlgorithmsWhether to automatically select algorithms when encrypting or signing.
AutoSelectCipherAlgorithmWhether to automatically select the cipher algorithm when encrypting.
AutoSelectMACAlgorithmWhether to automatically select the MAC algorithm when signing.
AutoSelectCompressionAlgorithmWhether to automatically select the compression algorithm.
CompressionLevelThe Zip or Zlib compression level.
DetachedSignatureDataThe detached signature.
FileNameThe original name of the encrypted file.
PGPZipDirThe directory used when creating or extracting a PGP zip file.
RequireValidSignatureSpecifies if an invalid signature is considered an error condition.
SplitHeadersControls whether ASCII Armor headers are split or not.
SymmetricPassphraseThe password used for symmetric encryption or decryption.
PublicKeyringFileThe file name of the public keyring file.
SecretKeyringFileThe file name of the secret keyring file.
AutoSelectDSASignatureHashAlgorithmWhether or not to select a suitable signature hash algorithm automatically.
VersionHeaderThe Version header value in the ASCII armored OpenPGP message.
LogLevelSpecifies the level of detail that is logged.
ProgressEventThresholdThe amount of data in bytes to process before firing the progress event.
ReadFromProgressEventWhether to read input data from inside the progress event.
WriteToProgressEventWhether to write output data so it is accessible from inside the progress event.
UseFipsCompliantAlgorithmsRestricts the usage to FIPS compliant algorithms only.
RecursiveDecryptModeWhether the encrypted data should be decrypted recursively.
CodePageThe system code page used for Unicode to Multibyte translations.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0