This is the mail archive of the
mailing list for the Cygwin project.
RE: mcrypt issue
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 18 Jul 2012 15:25:07 +0000
- Subject: RE: mcrypt issue
- References: <BLU0-SMTP3641EB7AE43DB41DF355A8ECED40@phx.gbl>
From: Aaron Schneider
On 16/07/2012 22:16, Nellis, Kenneth wrote:
> I am seeing an mcrypt problem with short plaintext strings.
> I don't have a Linux box to compare results, so I don't
> know if this is an upstream or a Cygwin issue.
> $ mcrypt --version
> Mcrypt v.2.6.8 (i686-pc-cygwin)
> Linked against libmcrypt v.2.5.8
> Copyright (C) 1998-2002 Nikos Mavroyanopoulos (email@example.com)
> Longer strings seem to work:
> $ echo abcdef | mcrypt -q -k xyz | mcrypt -dq -k xyz
> But shorter ones not so much:
> $ echo abcde | mcrypt -q -k xyz | mcrypt -dq -k xyz
> --Ken Nellis
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
The commands you show work correctly with older version of the software.
Specifically, I've tried this:
Although on Ubuntu 12.04 LTS latest versions of mcrypt and libmcrypts
work with these two commands.
-----END Original Message-----
It looks like this could be a Cygwin issue then.
As alternatives, it seems that ccrypt and openssl work just fine:
$ echo "abcde" | ccrypt -u -K xyz | ccrypt -d -u -K xyz
$ echo "abcde" | openssl des -k xyz | openssl des -d -k xyz
crypt, OTOH, seems also to be broken, if I'm using it correctly (no
man page or --help option):
$ echo "abcde" | crypt xyz | crypt xyz
If these utilities are broken, maybe they should be fixed or
removed from the distribution.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple