End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL#Digest
Digest(name)
ext/openssl/lib/openssl/digest.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ext/openssl/lib/openssl/digest.rb, line 67
def Digest(name)
OpenSSL::Digest.const_get(name)
end
Returns a Digest subclass by name
Example
require 'openssl' OpenSSL::Digest("MD5") # => OpenSSL::Digest::MD5 Digest("Foo") # => NameError: wrong constant name Foo