using System;
using System.IO;
using PgpCore;
public class Program
{
public static void Main()
EncryptionKeys encryptionKeys = new EncryptionKeys(File.OpenRead("publicKey.asc"));
// Encrypt
PGP pgp = new PGP(encryptionKeys);
string encryptedContent = pgp.Encrypt("String to encrypt");
Console.WriteLine(encryptedContent);
}