class method
Digest::Class.base64digest
(::string str) -> ::String
base64digest(str, *args)
ext/digest/lib/digest.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.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.