End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Digest::Class.base64digest
base64digest(str, *args)
ext/digest/lib/digest.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/ext/digest/lib/digest.rb, line 55
def self.base64digest(str, *args)
[digest(str, *args)].pack('m0')
end
Returns the base64 encoded hash value of a given string. The return value is properly padded with ‘=’ and contains no line feeds.