Module: Fairy::HValueGenerator::MD5
- Defined in:
- lib/fairy/share/hash-md5.rb
Class Method Summary collapse
Class Method Details
.value(key) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/fairy/share/hash-md5.rb', line 11 def MD5.value(key) case key when String Digest::MD5.digest(key).unpack("@12N").first else ERR::Raise ERR::NoImpliment, "non-string key(#{key.inspect})" end end |