require 'digest/sha1'
Digest::SHA1.hexdigest 'foo'
More Related Contents:
- How to remove empty string in hash
- Strange, unexpected behavior (disappearing/changing values) when using Hash default value, e.g. Hash.new([])
- Is there any difference between the `:key => “value”` and `key: “value”` hash notations?
- Converting a nested hash into a flat hash
- Is Hash Rocket deprecated?
- Ruby Style: How to check whether a nested hash element exists
- Group hashes by keys and sum the values
- How do I search within an array of hashes by hash values in ruby?
- Ruby Hash with duplicate keys?
- Performance of Arrays and Hashes in Ruby
- Comparing ruby hashes [duplicate]
- Find key/value pairs deep inside a hash containing an arbitrary number of nested hashes and arrays
- Ruby method Array#
- How to get a specific output iterating a hash in Ruby?
- Accessing elements of nested hashes in ruby [duplicate]
- Convert array of 2-element arrays into a hash, where duplicate keys append additional values
- How to assign hash[‘a’][‘b’]= ‘c’ if hash[‘a’] doesn’t exist?
- Is order of a Ruby hash literal guaranteed?
- How do methods use hash arguments in Ruby?
- ruby using the “&:methodname” shortcut from array.map(&:methodname) for hash key strings rather than methodname
- How do I compare two hashes?
- How can I track system-specific config files in a repo/project?
- What’s the difference between Ruby’s dup and clone methods?
- What’s the difference between a string and a symbol in Ruby?
- How to chunk an array in Ruby
- How to get filename without extension from file path in Ruby
- How do I redirect stderr and stdout to file for a Ruby script?
- Ruby RVM apt-get update error
- Ruby dependency injection libraries
- Method and variable name is the same