This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: crypt command
- From: "Sam Edge" <sam dot edge at ntlworld dot com>
- To: <cygwin at cygwin dot com>
- Date: Sun, 14 Apr 2002 01:53:58 +0100
- Subject: Re: crypt command
- References: <DF08E278E10FC14F87CE7E802ABFD04BF01798@EXCHANGE01.air2web.com> <lafu9ug7ooujskpaihe4ucea1ni1l8t14f@4ax.com>
> Its very easy to knock your self up a crypt. Perl has a crypt function so it
> should be very easy to create a crypt that takes the plain text password on
> stdin. It would also very easy to do in 'C' (although it appears that mcrypt
> will do the job).
mcrypt has (old) crypt compatibility but if that isn't a requirement then the openssl package can be made to do much the same thing very easily.
openssl des3 -salt -pass pass:X <plaintext >ciphertext
openssl des3 -d -pass pass:X <ciphertext >plaintext
You can choose a different cipher if you like - they're all better than the crippled Enigma one that crypt used to use - although a passphrase better than a single "X" character is probably a good idea.
--
Sam Edge
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/