Class: Digest::Class
- Defined in:
- lib/standard/facets/digest/base64digest.rb,
lib/standard/facets/digest/salted_digest.rb
Class Method Summary collapse
-
.base64digest(str, *args) ⇒ Object
From Ruby 1.9.2 source.
-
.salted_base64digest(str, salt = :auto, *args) ⇒ Object
CREDIT: Guido De Rosa.
-
.salted_digest(str, salt = :auto, *args) ⇒ Object
CREDIT: Guido De Rosa.
-
.salted_hexdigest(str, salt = :auto, *args) ⇒ Object
CREDIT: Guido De Rosa.
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 |