md5 problems with postgresql

Ralf Habacker Ralf.Habacker@freenet.de
Fri Nov 8 01:38:00 GMT 2002


Hi all,

I've recognized some md5 differences on the various crypting tools between
cygwin and linux.

[1]openssl:  	echo "0123456789" | openssl dgst -md5
[2]md5sum:		echo "0123456789" | md5sum
[3]php: 		echo '<? echo md5("0123456789") ."\n"; ?>' | php  -q
[4]postgre:		select encode(digest('0123456789', 'md5'), 'hex');


linux 8.0
[1]openssl:	3749f52bb326ae96782b42dc0a97b4c1
[2]md5sum:	3749f52bb326ae96782b42dc0a97b4c1
[3]php:	781e5e245d69b566979b86e28d23f2c7
[4]postgre:	781e5e245d69b566979b86e28d23f2c7

cygwin
[1]openssl:	3749f52bb326ae96782b42dc0a97b4c1
[2]md5sum:	3749f52bb326ae96782b42dc0a97b4c1
[3]php:	781e5e245d69b566979b86e28d23f2c7
[4]postgre:	7d7d51501a6d0d251eff1ca5c13bda57

Results:
[1] and [2] are the same under cygwin and linux 8.0
[3] is the same under cygwin and linux 8.0 too, but differs from [1] und [2]
[4] differ between cygwin and linux 8.0

I'm surprised about this difference. Has anyone an idea what the reason could be
?

Thanks

Ralf



--
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/



More information about the Cygwin mailing list