Sha256: 2ee9e2ec39c589e027388623cc4ecb0fb51e83c45b78f60d373e9d993e1aa58f

Contents?: true

Size: 192 Bytes

Versions: 3

Compression:

Stored size: 192 Bytes

Contents

require 'digest'

module Krypton
class SHA
  def self.hash(data, raw=false)
    return Digest::SHA256.hexdigest(data) if raw
    return Digest::SHA256.base64digest(data)
  end
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
krypton-0.1.7 lib/core/sha.rb
krypton-0.1.6 lib/core/sha.rb
krypton-0.1.5 lib/core/sha.rb