bpiec
bpiec

Reputation: 1631

Encrypting email in C# using PGP public key

I want to encrypt and send an email in C# using PGP key. I have only the public key and I don't want to use the private key (since I don't need to sign the message). Can you provide any example or link on how to do this?

I've seen C# How to simply encrypt a text file with a PGP Public Key? but it is about encrypting texts, not email messages. How to use it to send an email?

Upvotes: 0

Views: 2606

Answers (2)

Steve Wilkes
Steve Wilkes

Reputation: 7135

This project on CodeProject will allow you to programmatically encrypt email you send using keys. It's well-documented and easy to use.

Upvotes: 1

user111013
user111013

Reputation:

Encrypting Email is the same thing.

You encrypt the message you want to send and then put that as the email body.

You can't encrypt the entire email body, otherwise the email servers wouldn't be able to deliver it.

Upvotes: 0

Related Questions