[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to send a secure email (maybe PGP)?

Human Dunnil

5/8/2007 12:54:00 AM

Hello,

In an application I have to send an email containing a Credit Card
number, but I don't know how to secure it!!!

Is there a ruby library or best practice for securing an email
content, I googled for it with no success.

Thanks in advance,
- Dunnil

2 Answers

Michal Suchanek

5/8/2007 9:52:00 AM

0

On 08/05/07, Human Dunnil <h.dunnil@gmail.com> wrote:
> Hello,
>
> In an application I have to send an email containing a Credit Card
> number, but I don't know how to secure it!!!
>
> Is there a ruby library or best practice for securing an email
> content, I googled for it with no success.
>

There are some encryption functions in openssl. Hopefully the ruby
bindings and mime libraries could be used to compose an encrypted
message.

However, the critical part is that you have to get the key of the
receiver somehow and their mail client has to support the kind of
encryption you use.

You could probably guess the kind of encryption by looking at the key
(PGP vs the openssl certificates, I am not sure if there is any
other). However, you still need to collect the (public) keys.

Thanks

Michal

Doug Phillips

5/8/2007 10:36:00 PM

0

> -----Original Message-----
> In an application I have to send an email containing a Credit
> Card number, but I don't know how to secure it!!!
>
> Is there a ruby library or best practice for securing an
> email content, I googled for it with no success.

There's a perl CGI called Soupermail that does this. It uses a shell
exec call to PGP to encode a temporary file that contains the
information, then attaches that file to the email, or something like
that.

If you're looking for something, you could either use that, or use it as
an example. I've used it several times on a number of consulting
projects, and it works great, so... Hope this helps :)

-Doug