Sha256: 405e40734917f3d488477e260906fa13690472a81068652affeba41b9630394a
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
class Black_matter class << self def encode(string) string=string.to_s JS.global.sha256(string.to_s) end def check_password(input_password, stored_hash) input_hash = encode(input_password) input_hash == stored_hash end def set_password(hashed_pass) @password = hashed_pass end def password @password end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
atome-0.5.7.3.9 | lib/atome/kernel/black_matter.rb |