Discussion:
PGP-like encryption for C#. BouncyCastle? Chilkat?
Jeremy Grand
2009-10-19 18:57:07 UTC
Permalink
I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.

Anyone here have knowledge on this they'd care to share?

Jeremy




[Non-text portions of this message have been removed]



------------------------------------
Justin Collum
2009-10-19 19:00:36 UTC
Permalink
Looked at GnuPG? Got it from here:

http://stackoverflow.com/questions/787398/pgp-library-for-c
Post by Jeremy Grand
I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.
Anyone here have knowledge on this they'd care to share?
Jeremy
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]



------------------------------------
nordyj2001
2009-10-19 20:54:02 UTC
Permalink
I've always used NSDPGP (http://www.grt.net.tt/nsdpgp.html). It's COM, so we're talking an interop layer here, and you do have to have a PGP engine already installed. But, I think I'll have to take a look at BouncyCastle myself. Never heard of it until now.
Post by Jeremy Grand
I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.
Anyone here have knowledge on this they'd care to share?
Jeremy
[Non-text portions of this message have been removed]
------------------------------------
Howell, William
2009-10-19 20:56:30 UTC
Permalink
I have used BouncyCastle and it works fine for most PGP tasks. Is there
a specific task you are trying to accomplish?



From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of nordyj2001
Sent: Monday, October 19, 2009 1:54 PM
To: ***@yahoogroups.com
Subject: [padnug] Re: PGP-like encryption for C#. BouncyCastle? Chilkat?





I've always used NSDPGP (http://www.grt.net.tt/nsdpgp.html). It's COM,
so we're talking an interop layer here, and you do have to have a PGP
engine already installed. But, I think I'll have to take a look at
BouncyCastle myself. Never heard of it until now.
Post by Jeremy Grand
I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.
Anyone here have knowledge on this they'd care to share?
Jeremy
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]



------------------------------------
Jeremy Grand
2009-10-19 21:23:26 UTC
Permalink
I have a bunch of incoming EDI files that need to be decrypted with a
private key and then processed. After processing, an EDI
acknowledgement (997) is created, and that needs to be encrypted with a
public key, the specific one dependent on the destination. So, I need
to manage a key list. We have an existing key set and it would be
really nice to be able to import that -- there are many 3rd parties who
use the existing public key.

Jeremy


-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Howell, William
Sent: Monday, October 19, 2009 1:57 PM
To: ***@yahoogroups.com
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?

I have used BouncyCastle and it works fine for most PGP tasks. Is there
a specific task you are trying to accomplish?






------------------------------------
Howell, William
2009-10-19 21:27:04 UTC
Permalink
AFAIR it supports using Keyrings generated by other PGP implementations
and can use multiple keyrings to decrypt/encrypt a message as well as
doing signing.



The only issue I had with it was that there was missing functionality
(not everything was always implemented) and that the code was fairly
dirty in places so tracking down a bug (if there was one) was going to
be an exercise in extreme debugging.



After implementation we did not find any bugs in what we were doing, so
the last point was less of a concern.



IFIR there was a sample of doing what you want below (open a file,
decrypt, then encrypt again). So you should be able to get started out
of the box.



From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Jeremy Grand
Sent: Monday, October 19, 2009 2:23 PM
To: ***@yahoogroups.com
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?





I have a bunch of incoming EDI files that need to be decrypted with a
private key and then processed. After processing, an EDI
acknowledgement (997) is created, and that needs to be encrypted with a
public key, the specific one dependent on the destination. So, I need
to manage a key list. We have an existing key set and it would be
really nice to be able to import that -- there are many 3rd parties who
use the existing public key.

Jeremy

-----Original Message-----
From: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
[mailto:***@yahoogroups.com <mailto:padnug%40yahoogroups.com> ] On
Behalf
Of Howell, William
Sent: Monday, October 19, 2009 1:57 PM
To: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?

I have used BouncyCastle and it works fine for most PGP tasks. Is there
a specific task you are trying to accomplish?





[Non-text portions of this message have been removed]



------------------------------------
Jeremy Grand
2009-10-23 00:44:43 UTC
Permalink
Bill, have you been able to find the C# examples (specifically
csharp\crypto\test\src\openpgp\examples\KeyBasedFileProcessor.cs)?

I've seen several references to them and partial quotations, but can't
find the original source. Maybe I have a blind spot for this.

By the way, BC is nice in the sense that it is self contained, complete
source code. No 3rd party dlls to register.

Jeremy


-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Howell, William
Sent: Monday, October 19, 2009 1:57 PM
To: ***@yahoogroups.com
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?

I have used BouncyCastle and it works fine for most PGP tasks. Is there
a specific task you are trying to accomplish?



From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of nordyj2001
Sent: Monday, October 19, 2009 1:54 PM
To: ***@yahoogroups.com
Subject: [padnug] Re: PGP-like encryption for C#. BouncyCastle? Chilkat?





I've always used NSDPGP (http://www.grt.net.tt/nsdpgp.html). It's COM,
so we're talking an interop layer here, and you do have to have a PGP
engine already installed. But, I think I'll have to take a look at
BouncyCastle myself. Never heard of it until now.
Post by Jeremy Grand
I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.
Anyone here have knowledge on this they'd care to share?
Jeremy
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links





------------------------------------
Howell, William
2009-10-23 00:50:37 UTC
Permalink
In my copy it lives here:
svn/projects/automation/External/trunk/BouncyCastle/bccrypto-net-1.3-src
/csharp/crypto/test/src/openpgp/examples like you have listed. Is it
missing in your package?



From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Jeremy Grand
Sent: Thursday, October 22, 2009 5:45 PM
To: ***@yahoogroups.com
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?





Bill, have you been able to find the C# examples (specifically
csharp\crypto\test\src\openpgp\examples\KeyBasedFileProcessor.cs)?

I've seen several references to them and partial quotations, but can't
find the original source. Maybe I have a blind spot for this.

By the way, BC is nice in the sense that it is self contained, complete
source code. No 3rd party dlls to register.

Jeremy

-----Original Message-----
From: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
[mailto:***@yahoogroups.com <mailto:padnug%40yahoogroups.com> ] On
Behalf
Of Howell, William
Sent: Monday, October 19, 2009 1:57 PM
To: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?

I have used BouncyCastle and it works fine for most PGP tasks. Is there
a specific task you are trying to accomplish?

From: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
[mailto:***@yahoogroups.com <mailto:padnug%40yahoogroups.com> ] On
Behalf
Of nordyj2001
Sent: Monday, October 19, 2009 1:54 PM
To: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
Subject: [padnug] Re: PGP-like encryption for C#. BouncyCastle? Chilkat?

I've always used NSDPGP (http://www.grt.net.tt/nsdpgp.html). It's COM,
so we're talking an interop layer here, and you do have to have a PGP
engine already installed. But, I think I'll have to take a look at
BouncyCastle myself. Never heard of it until now.

--- In ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
<mailto:padnug%40yahoogroups.com> ,
Post by Jeremy Grand
I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.
Anyone here have knowledge on this they'd care to share?
Jeremy
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]

------------------------------------

Yahoo! Groups Links





[Non-text portions of this message have been removed]



------------------------------------
Jeremy Grand
2009-10-23 01:10:42 UTC
Permalink
Found it. Didn't think to look that deeply down the Test path. Thanks.


-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Howell, William
Sent: Thursday, October 22, 2009 5:51 PM
To: ***@yahoogroups.com
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?

In my copy it lives here:
svn/projects/automation/External/trunk/BouncyCastle/bccrypto-net-1.3-src
/csharp/crypto/test/src/openpgp/examples like you have listed. Is it
missing in your package?



From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Jeremy Grand
Sent: Thursday, October 22, 2009 5:45 PM
To: ***@yahoogroups.com
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?





Bill, have you been able to find the C# examples (specifically
csharp\crypto\test\src\openpgp\examples\KeyBasedFileProcessor.cs)?

I've seen several references to them and partial quotations, but can't
find the original source. Maybe I have a blind spot for this.

By the way, BC is nice in the sense that it is self contained, complete
source code. No 3rd party dlls to register.

Jeremy

-----Original Message-----
From: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
[mailto:***@yahoogroups.com <mailto:padnug%40yahoogroups.com> ] On
Behalf
Of Howell, William
Sent: Monday, October 19, 2009 1:57 PM
To: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
Subject: RE: [padnug] Re: PGP-like encryption for C#. BouncyCastle?
Chilkat?

I have used BouncyCastle and it works fine for most PGP tasks. Is there
a specific task you are trying to accomplish?

From: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
[mailto:***@yahoogroups.com <mailto:padnug%40yahoogroups.com> ] On
Behalf
Of nordyj2001
Sent: Monday, October 19, 2009 1:54 PM
To: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
Subject: [padnug] Re: PGP-like encryption for C#. BouncyCastle? Chilkat?

I've always used NSDPGP (http://www.grt.net.tt/nsdpgp.html). It's COM,
so we're talking an interop layer here, and you do have to have a PGP
engine already installed. But, I think I'll have to take a look at
BouncyCastle myself. Never heard of it until now.

--- In ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
<mailto:padnug%40yahoogroups.com> ,
Post by Jeremy Grand
I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.
Anyone here have knowledge on this they'd care to share?
Jeremy
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]

------------------------------------

Yahoo! Groups Links





[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links





------------------------------------

Mark Knell
2009-10-19 21:28:27 UTC
Permalink
Pardon the obvious question, but you were silent on why you wouldn't just use the .NET crypto libs. Performance? Unsupported algorithms? Etc.

-Mark




________________________________
From: Jeremy Grand <***@ninprodata.com>
To: ***@yahoogroups.com
Sent: Mon, October 19, 2009 11:57:07 AM
Subject: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?


I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.

Anyone here have knowledge on this they'd care to share?

Jeremy

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]



------------------------------------
Howell, William
2009-10-19 21:29:29 UTC
Permalink
AFAIK .NET Crypto does not support PGP keychains. Has that changed?



From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Mark Knell
Sent: Monday, October 19, 2009 2:28 PM
To: ***@yahoogroups.com
Subject: Re: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?





Pardon the obvious question, but you were silent on why you wouldn't
just use the .NET crypto libs. Performance? Unsupported algorithms? Etc.

-Mark

________________________________
From: Jeremy Grand <***@ninprodata.com
<mailto:jeremy%40ninprodata.com> >
To: ***@yahoogroups.com <mailto:padnug%40yahoogroups.com>
Sent: Mon, October 19, 2009 11:57:07 AM
Subject: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?

I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.

Anyone here have knowledge on this they'd care to share?

Jeremy

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]



------------------------------------
Mark Knell
2009-10-19 21:48:11 UTC
Permalink
Oops, my question was prompted by the original post, and crossed in the mail with the post that specified keychains.

Mark




________________________________
From: "Howell, William" <***@avertlabs.com>
To: ***@yahoogroups.com
Sent: Mon, October 19, 2009 2:29:29 PM
Subject: RE: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?


AFAIK .NET Crypto does not support PGP keychains. Has that changed?

From: ***@yahoogroups. com [mailto:***@yahoogroups. com] On Behalf
Of Mark Knell
Sent: Monday, October 19, 2009 2:28 PM
To: ***@yahoogroups. com
Subject: Re: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?

Pardon the obvious question, but you were silent on why you wouldn't
just use the .NET crypto libs. Performance? Unsupported algorithms? Etc.

-Mark

____________ _________ _________ __
From: Jeremy Grand <***@ninprodata. com
<mailto:jeremy% 40ninprodata. com> >
To: ***@yahoogroups. com <mailto:padnug% 40yahoogroups. com>
Sent: Mon, October 19, 2009 11:57:07 AM
Subject: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?

I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.

Anyone here have knowledge on this they'd care to share?

Jeremy

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]



------------------------------------
Jeremy Grand
2009-10-19 22:07:52 UTC
Permalink
Mark, part of the answer is that I just hadn't gotten to that question
yet. I'm not against writing a key ring if that's all that's missing
from the libs, except for the learning curve, which might be a long one.
It would be nice to have an all-source code solution.

Jeremy


-----Original Message-----
From: ***@yahoogroups.com [mailto:***@yahoogroups.com] On Behalf
Of Mark Knell
Sent: Monday, October 19, 2009 2:28 PM
To: ***@yahoogroups.com
Subject: Re: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?

Pardon the obvious question, but you were silent on why you wouldn't
just use the .NET crypto libs. Performance? Unsupported algorithms?
Etc.

-Mark




________________________________
From: Jeremy Grand <***@ninprodata.com>
To: ***@yahoogroups.com
Sent: Mon, October 19, 2009 11:57:07 AM
Subject: [padnug] PGP-like encryption for C#. BouncyCastle? Chilkat?


I have a need for handling public key/private key encrypted files and
stumbled on BouncyCastle. Seems to provide the tools I need, and at
least one MDSN thread indicates happy users. I also see that Chilkat
has some components. They seem to have a huge product line, but I am
not familiar with them.

Anyone here have knowledge on this they'd care to share?

Jeremy

[Non-text portions of this message have been removed]




[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links





------------------------------------
Patrice Servin
2009-10-20 20:04:09 UTC
Permalink
Thank you -



Patrice Servin

Principal Recruiter

Momentum Management Resources, Inc.

Office: 503.906.7970 Mobile: 503.853.0835

www.momentum-management.com



LinkedIn: www.linkedin.com/in/patriceservin

Follow Me on Twitter! www.twitter.com/patriceservin



"Do or do not - there is no try"

~Yoda





<mailto:***@momentum-management.com>

_____



[Non-text portions of this message have been removed]



------------------------------------
Loading...