Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <00a201c1e34e$efd20fc0$15b0fc3e@nori> From: "Sam Edge" To: References: Subject: Re: crypt command Date: Sun, 14 Apr 2002 01:53:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g3E0sxd15670 > 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 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/