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.6.3.5 lib/atome/kernel/black_matter.rb
atome-0.5.6.3.1 lib/atome/kernel/black_matter.rb
atome-0.5.6.3.0 lib/atome/kernel/black_matter.rb
atome-0.5.6.2.9 lib/atome/kernel/black_matter.rb
atome-0.5.6.2.7 lib/atome/kernel/black_matter.rb
atome-0.5.6.2.5 lib/atome/kernel/black_matter.rb
atome-0.5.6.2.4 lib/atome/kernel/black_matter.rb
atome-0.5.6.2.3 lib/atome/kernel/black_matter.rb
atome-0.5.6.2.1 lib/atome/kernel/black_matter.rb
atome-0.5.6.2.0 lib/atome/kernel/black_matter.rb
atome-0.5.6.1.9 lib/atome/kernel/black_matter.rb
atome-0.5.6.1.4 lib/atome/kernel/black_matter.rb
atome-0.5.6.1.1 lib/atome/kernel/black_matter.rb
atome-0.5.6.1.0 lib/atome/kernel/black_matter.rb
atome-0.5.6.0.4 lib/atome/kernel/black_matter.rb
atome-0.5.6.0.3 lib/atome/kernel/black_matter.rb
atome-0.5.6.0.2 lib/atome/kernel/black_matter.rb
atome-0.5.5.9.1 lib/atome/kernel/black_matter.rb
atome-0.5.5.8.7 lib/atome/kernel/black_matter.rb
atome-0.5.5.8.5 lib/atome/kernel/black_matter.rb