For the complete documentation index, see llms.txt. This page is also available as Markdown.

EncryptFile

Encrypts a file using public or private key. Additionally can be configured to use key rings.

Task version: 1.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

SourceFilePath : String

Full path to the file for encryption.

Default: - Example: C:\temp\message.txt

OutputFilePath : String

Full path for the encrypted file.

Default: - Example: C:\temp\message.pgp

OutputFileExistsAction : OutputFileExistsAction

Action for if the output file exists.

Possible values:

  • Overwrite: Action for if the output file exists.

  • Error: Action for if the output file exists.

Default: - Example: OutputFileExistsAction.Overwrite

PublicKeyFile : String

Full path for the public key.

Default: - Example: C:\temp\publicKey.asc

PublicKeyId : String

ID of the correct key in the key ring (Optional).

If left empty first suitable key in key ring is used.

Default: - Example: 0x1234567890ABCDEF 1234567890ABCDEF

EncryptionAlgorithm : PgpEncryptEncryptionAlgorithm

Encryption algorithm to use

Possible values:

  • Aes128: Encryption algorithm to use

  • Aes192: Encryption algorithm to use

  • Aes256: Encryption algorithm to use

  • Blowfish: Encryption algorithm to use

  • Camellia128: Encryption algorithm to use

  • Camellia192: Encryption algorithm to use

  • Camellia256: Encryption algorithm to use

  • Cast5: Encryption algorithm to use

  • Des: Encryption algorithm to use

  • Idea: Encryption algorithm to use

  • TripleDes: Encryption algorithm to use

  • Twofish: Encryption algorithm to use

Default: 7 Example: PgpEncryptEncryptionAlgorithm.Cast5

Task Result

Name
Description

Success : Boolean

Indicates whether the encryption was successful. Example: true

FilePath : String

File path to the encrypted file. Example: C:\temp\message.pgp

Error : Error

Error that occurred during task execution. Example: object { string Message, object { Exception Exception } AdditionalInfo }

Task Changelog

Changelog for Task Frends.Pgp.EncryptFile.

[1.0.0] - 2025-12-12

Added

  • Initial implementation

Last updated

Was this helpful?