http://ruby.about.com/od/advancedruby/ss/Cryptographic-Hashes-In-Ruby.htmからこのコードを入力すると
#!/usr/bin/env ruby
require 'digest'
password = "A user's password"
hash = Digest::SHA1.hexdigest(password)
puts hash
# This will produce the hash
# 62018390552aaba3d344e3b43bfa14e49e535dfc
私は彼らが私がそうすると言った答えを得る。
しかし、このシェルコマンドを入力すると
echo "A user's password" | openssl dgst -sha1 -hex
95f33732bafc1744bf24e0cae4e014ab2e5f1580を取得します
なんでお願い?