Module: Dapp::Helper::Sha256
- Included in:
- Application, Build::Stage::Base
- Defined in:
- lib/dapp/helper/sha256.rb
Overview
Sha256
Instance Method Summary collapse
Instance Method Details
#hashsum(arg) ⇒ Object
5 6 7 |
# File 'lib/dapp/helper/sha256.rb', line 5 def hashsum(arg) sha256(arg) end |
#sha256(arg) ⇒ Object
9 10 11 |
# File 'lib/dapp/helper/sha256.rb', line 9 def sha256(arg) Digest::SHA256.hexdigest Array(arg).compact.map(&:to_s).join(':::') end |