From: Josh Huber Date: 2002-11-28T08:14:02+09:00 Subject: Re: MD5 "Sebastian Ruhs" writes: > [code (ruby)] > dodger@satan:~$ irb > irb(main):001:0> require 'md5' > true > irb(main):002:0> MD5.md5('hello') > 5d41402abc4b2a76b9719d911017c592 irb(main):004:0> MD5.md5("hello\n") b1946ac92492d2347c6235b4d2611184 > [shell] > dodger@satan:~$ echo hello > hello > dodger@satan:~$ md5sum hello > b1946ac92492d2347c6235b4d2611184 hello echo adds a newline to the end of the string it's echoing. Use -n to omit it: $ echo -n hello | md5sum 5d41402abc4b2a76b9719d911017c592 - $ ruby -e 'require "md5"; puts MD5.md5("hello")' 5d41402abc4b2a76b9719d911017c592 -- Josh Huber