Class: OpenSSL::Digest

Inherits:
Object
  • Object
show all
Defined in:
lib/1.8/openssl/digest.rb,
lib/1.9/openssl/digest.rb

Direct Known Subclasses

Digest

Defined Under Namespace

Classes: Digest

Class Method Summary collapse

Class Method Details

.digest(name, data) ⇒ Object

Return the data hash computed with name Digest. name is either the long name or short name of a supported digest algorithm.

Examples

OpenSSL::Digest.digest("SHA256, "abc")

which is equivalent to:

OpenSSL::Digest::SHA256.digest("abc")


40
41
42
# File 'lib/1.9/openssl/digest.rb', line 40

def self.digest(name, data)
    super(data, name)
end