Module: WNS::DigestFilters
- Defined in:
- lib/jekyll-wns/assets/digest_filters.rb
Instance Method Summary collapse
- #sha256(input) ⇒ Object
- #sha256_64(input) ⇒ Object
- #sha384(input) ⇒ Object
- #sha384_64(input) ⇒ Object
Instance Method Details
#sha256(input) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/jekyll-wns/assets/digest_filters.rb', line 20 def sha256(input) unless input.nil? Digest::SHA256.hexdigest input else "" end end |
#sha256_64(input) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/jekyll-wns/assets/digest_filters.rb', line 4 def sha256_64(input) unless input.nil? Digest::SHA256.base64digest input else "" end end |
#sha384(input) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/jekyll-wns/assets/digest_filters.rb', line 28 def sha384(input) unless input.nil? Digest::SHA384.hexdigest input else "" end end |
#sha384_64(input) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/jekyll-wns/assets/digest_filters.rb', line 12 def sha384_64(input) unless input.nil? Digest::SHA384.base64digest input else "" end end |