• C

File encryption

Is there any emailing encryption program that can be used to encrypt a file automatically from a program that does not require interaction with it?

Tried using PGP (Pretty Good Privacy) but it requires you to enter the encryption password at the command prompt before the file could be encrypted.  The program I'm trying to encrypt a file with PGP is a C CGI script before which the file is e-mailed.

I will be grateful if there is a way round this, such as an encryption program you can pass the details as parameters to it before it is e-mailed!
samchichizAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gothickCommented:
I think I may be misunderstanding the question somewhat -- why would PGP need an encryption passoword when _sending_ mail?  When sending, you'll be encrypting with the recipient's public key, which should not be password protected (after all, there's no need to; it's a public key.)

Also, what OS is this under?
0
mliberiCommented:
I wrote a couple of program doing exactly what you need.

The first, called des, is based on Data Encryption Standard with a 56 bit key.

The second,called kc, is very fast and is basically a scrambling algorithm.

You can download them from my home page at the following URL
http://www.geocities.com/SiliconValley/Horizon/5745
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.