Module: Gem::Guardian::Checksum
- Defined in:
- lib/gem/guardian/checksum.rb
Overview
Local checksum helpers.
Class Method Summary collapse
-
.sha256_file(path) ⇒ Object
Returns the SHA256 hex digest for the file at +path+.
Class Method Details
.sha256_file(path) ⇒ Object
Returns the SHA256 hex digest for the file at +path+.
12 13 14 |
# File 'lib/gem/guardian/checksum.rb', line 12 def sha256_file(path) Digest::SHA256.file(path).hexdigest end |