DES encryption command-line tool

Looking for a unix command-line util that will allow me to pass it a key and an arbitrary string and will give back the DES-CBC encrypted version of that string.  It has to be able to run on either Digital Unix 4.0D (preferably) or Solaris 7.  (I'm not averse to purchasing a commercial product if one exists.)  Any ideas?
icrewAsked:
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.

kawinCommented:
If you want to encrypt your data I suggest you to look at PGP.

www.pgpi.org  (international)
or www.pgp.com 
0
icrewAuthor Commented:
Unfortunately, I'm encrypting stuff to be sent to another system that requires DES--I don't have any choice in the matter.  (which is making my life very difficult at the moment).
0
jlevieCommented:
Openssl claims to be able to encrypt using des-cbc (DES). My reading of the source indicates that the encryption command would be:

>openssl des -e -k a-key -in inp -out oup

Plain text input data is in "inp" and the encrypted result goes in "oup". The result obtained abve can be decrypted and the string recovered to the file "res" with:

>openssl des -d -k a-key -in oup -out res

As far as I can tell right not it looks like the data has to be in files, not on the command line or read /written to stdin/stdout. That's not to difficult to arrainge, a trivial perl wrapper could do it.
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
Unix OS

From novice to tech pro — start learning today.