Class: Digest::Class

Inherits:
Object show all
Defined in:
lib/extensions/digest/digest.rb

Direct Known Subclasses

HMAC, SHA2

Class Method Summary collapse

Class Method Details

.file(name) ⇒ Object

creates a digest object and reads a given file, name.

p Digest::SHA256.file("X11R6.8.2-src.tar.bz2").hexdigest
# => "f02e3c85572dc9ad7cb77c2a638e3be24cc1b5bea9fdbb0b0299c9668475c534"


28
29
30
# File 'lib/extensions/digest/digest.rb', line 28

def self.file(name)
  new.file(name)
end