Sha256: 2f59ec38a09df79eed79a9c5f8dc52d71dbcc05cdc3638c6d107f03771af3fb8
Contents?: true
Size: 238 Bytes
Versions: 3
Compression:
Stored size: 238 Bytes
Contents
require 'digest' module Krypton class SHA def self.hash(data, raw=false) if raw return Digest::SHA256.hexdigest(data) else return Digest::SHA256.base64digest(data) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
krypton-0.1.4 | lib/core/sha.rb |
krypton-0.1.3 | lib/core/sha.rb |
krypton-0.1.2 | lib/core/sha.rb |