Class: Digest::Class

Inherits:
Object show all
Defined in:
lib/standard/facets/digest/base64digest.rb,
lib/standard/facets/digest/salted_digest.rb

Class Method Summary collapse

Class Method Details

.base64digest(str, *args) ⇒ Object

From Ruby 1.9.2 source



36
37
38
# File 'lib/standard/facets/digest/base64digest.rb', line 36

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

.salted_base64digest(str, salt = :auto, *args) ⇒ Object

CREDIT: Guido De Rosa



38
39
40
# File 'lib/standard/facets/digest/salted_digest.rb', line 38

def self.salted_base64digest(str, salt=:auto, *args)
  new(*args).salted_base64digest(str, salt)
end

.salted_digest(str, salt = :auto, *args) ⇒ Object

CREDIT: Guido De Rosa



28
29
30
# File 'lib/standard/facets/digest/salted_digest.rb', line 28

def self.salted_digest(str, salt=:auto, *args)
  new(*args).salted_digest(str, salt)
end

.salted_hexdigest(str, salt = :auto, *args) ⇒ Object

CREDIT: Guido De Rosa



33
34
35
# File 'lib/standard/facets/digest/salted_digest.rb', line 33

def self.salted_hexdigest(str, salt=:auto, *args)
  new(*args).salted_hexdigest(str, salt)
end