Re: Bug in Digest::MD5
Christian Neukirchen <[email protected]> Sun, 16 Jan 2005 14:18:36 +0100
| Newsgroups | gmane.comp.lang.ruby.german |
|---|---|
| Message-ID | <[email protected]> |
Detlef Reichl <[email protected]> writes: > Hallo, > > rubys MD5.hexdigest liefert andere Ergebnisse als der Shell-Befehl > md5sum, obwohl nach meinem Verst=E4ndnis beide das gleiche tun sollten. > Bug oder Verst=E4ndnisproblem? > > #!/usr/bin/ruby > require 'digest/md5' > > p Digest::MD5.hexdigest('meinpasswort') > system('echo meinpasswort | md5sum') system('echo -n meinpasswort | md5sum') Trailing newline. > gruss > detlef > > _______________________________________________ > Ruby-de-talk mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ruby-de-talk --=20 Christian Neukirchen <[email protected]> http://kronavita.de/chris= /