Sha256: c90eaca8ac878bcf513a5d85d1099a4909acbd72bb67ee2ed1a41b7280098081
Contents?: true
Size: 363 Bytes
Versions: 72
Compression:
Stored size: 363 Bytes
Contents
class Black_matter class << self def encode(string) 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
72 entries across 72 versions & 1 rubygems