Maintenance Ruby 3.3 gets fixes, but no new features. 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.3.0/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.