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

Version Path
atome-0.5.7.3.6 lib/atome/kernel/black_matter.rb
atome-0.5.7.3.5 lib/atome/kernel/black_matter.rb
atome-0.5.7.3.3 lib/atome/kernel/black_matter.rb
atome-0.5.7.3.2 lib/atome/kernel/black_matter.rb
atome-0.5.7.3.1 lib/atome/kernel/black_matter.rb
atome-0.5.7.3.0 lib/atome/kernel/black_matter.rb
atome-0.5.7.1.8 lib/atome/kernel/black_matter.rb
atome-0.5.7.1.7 lib/atome/kernel/black_matter.rb
atome-0.5.7.1.0 lib/atome/kernel/black_matter.rb
atome-0.5.7.0.7 lib/atome/kernel/black_matter.rb
atome-0.5.7.0.5 lib/atome/kernel/black_matter.rb
atome-0.5.7.0.4 lib/atome/kernel/black_matter.rb
atome-0.5.7.0.3 lib/atome/kernel/black_matter.rb
atome-0.5.7.0.2 lib/atome/kernel/black_matter.rb
atome-0.5.6.8.7 lib/atome/kernel/black_matter.rb
atome-0.5.6.8.6 lib/atome/kernel/black_matter.rb
atome-0.5.6.8.5 lib/atome/kernel/black_matter.rb
atome-0.5.6.8.3 lib/atome/kernel/black_matter.rb
atome-0.5.6.7.8 lib/atome/kernel/black_matter.rb
atome-0.5.6.7.7 lib/atome/kernel/black_matter.rb