Method: Digest::Class.base64digest

Defined in:
lib/digest.rb

.base64digest(str, *args) ⇒ Object

Returns the base64 encoded hash value of a given string. The return value is properly padded with ‘=’ and contains no line feeds.



41
42
43
# File 'lib/digest.rb', line 41

def self.base64digest(str, *args)
  [digest(str, *args)].pack('m0')
end