{"id":22808265,"url":"https://github.com/sixarm/sixarm_ruby_password_hash","last_synced_at":"2025-03-30T21:15:40.668Z","repository":{"id":919220,"uuid":"682450","full_name":"SixArm/sixarm_ruby_password_hash","owner":"SixArm","description":"SixArm.com » Ruby » Password Hash to do secure SHA256 passwords.","archived":false,"fork":false,"pushed_at":"2023-09-15T19:28:44.000Z","size":405,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-06T00:24:48.591Z","etag":null,"topics":["authentication","gem","password","ruby","security"],"latest_commit_sha":null,"homepage":"http://sixarm.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SixArm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null}},"created_at":"2010-05-24T00:03:50.000Z","updated_at":"2023-05-22T14:12:21.000Z","dependencies_parsed_at":"2023-07-05T15:17:05.781Z","dependency_job_id":null,"html_url":"https://github.com/SixArm/sixarm_ruby_password_hash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_password_hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_password_hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_password_hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_password_hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_password_hash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246379366,"owners_count":20767696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","gem","password","ruby","security"],"created_at":"2024-12-12T11:08:54.890Z","updated_at":"2025-03-30T21:15:40.649Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com »Ruby » \u003cbr\u003e PasswordHash class to generate secure SHA256 passwords\n\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_password_hash/doc\u003e\n* Gem: \u003chttp://rubygems.org/gems/sixarm_ruby_password_hash\u003e\n* Repo: \u003chttp://github.com/sixarm/sixarm_ruby_password_hash\u003e\n\u003c!--header-shut--\u003e\n\n\n## Introduction\n\nPassword hash tool to create secure passwords,\n\nThis uses SHA256 hexdigest for the cryptographic hash,\nand authenticates a password, salt, and hash.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_password_hash/doc\u003e\n\nWant to help? We're happy to get pull requests.\n\n\n\u003c!--install-open--\u003e\n\n## Install\n\n### Gem\n\nTo install this gem in your shell or terminal:\n\n    gem install sixarm_ruby_password_hash\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_password_hash'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_password_hash'\n\n\u003c!--install-shut--\u003e\n\n\n## Examples\n\nTo create a password:\n\n    require \"sixarm_ruby_password_hash\"\n    text = \"mysecret\"\n    salt = \"azsxdcfv\"\n    hash = PasswordHash.new(text,salt)\n\nTo create a password using our helpers:\n\n    require \"sixarm_ruby_password_hash\"\n    require \"sixarm_ruby_password_salt\"\n    require \"sixarm_ruby_password_text\"\n    text = PasswordText.new\n    salt = PasswordSalt.new\n    hash = PasswordHash.new(text,salt)\n\nTo verify a password:\n\n    hash.valid?(text,salt)\n\nTo verify a password from a web form for a user:\n\n    user = User.find(params[:id]) or raise \"user not found\"\n    user.hash.valid?(params[:password],user.salt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_password_hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_password_hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_password_hash/lists"}