{"id":22808273,"url":"https://github.com/sixarm/sixarm_ruby_password_attribute","last_synced_at":"2025-03-30T21:15:53.515Z","repository":{"id":919216,"uuid":"682446","full_name":"SixArm/sixarm_ruby_password_attribute","owner":"SixArm","description":"SixArm.com » Ruby » PasswordAttribute module to add BCrypt to an ActiveRecord model","archived":false,"fork":false,"pushed_at":"2023-09-15T19:28:43.000Z","size":323,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-06T00:24:46.179Z","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:00:47.000Z","updated_at":"2023-05-22T14:12:17.000Z","dependencies_parsed_at":"2023-07-09T14:46:28.001Z","dependency_job_id":null,"html_url":"https://github.com/SixArm/sixarm_ruby_password_attribute","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_attribute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_password_attribute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_password_attribute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SixArm%2Fsixarm_ruby_password_attribute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SixArm","download_url":"https://codeload.github.com/SixArm/sixarm_ruby_password_attribute/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:55.358Z","updated_at":"2025-03-30T21:15:53.494Z","avatar_url":"https://github.com/SixArm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SixArm.com » Ruby » PasswordAttribute module to add strong passwords to ActiveRecord\n\n\u003c!--header-open--\u003e\n\n[![Gem Version](https://badge.fury.io/rb/sixarm_ruby_password_attribute.svg)](http://badge.fury.io/rb/sixarm_ruby_password_attribute)\n[![Build Status](https://travis-ci.org/SixArm/sixarm_ruby_password_attribute.png)](https://travis-ci.org/SixArm/sixarm_ruby_password_attribute)\n[![Code Climate](https://api.codeclimate.com/v1/badges/7150ab3f6beea07263bc/maintainability)](https://codeclimate.com/github/SixArm/sixarm_ruby_password_attribute/maintainability)\n\n* Git: \u003chttps://github.com/SixArm/sixarm_ruby_password_attribute\u003e\n* Doc: \u003chttp://sixarm.com/sixarm_ruby_password_attribute/doc\u003e\n* Gem: \u003chttps://rubygems.org/gems/sixarm_ruby_password_attribute\u003e\n* Contact: Joel Parker Henderson, \u003cjoel@sixarm.com\u003e\n* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).\n\n\u003c!--header-shut--\u003e\n\n## Introduction\n\nEasy way to add BCrypt strong password capability to an ActiveRecord model.\n\nThis is typically useful to add to a Ruby On Rails ActiveRecord user model.\n\nFor docs go to \u003chttp://sixarm.com/sixarm_ruby_password_attribute/doc\u003e\n\nWant to help? We're happy to get pull requests.\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_attribute\n\n### Gemfile\n\nTo add this gem to your Gemfile:\n\n    gem 'sixarm_ruby_password_attribute'\n\n### Require\n\nTo require the gem in your code:\n\n    require 'sixarm_ruby_password_attribute'\n\n\u003c!--install-shut--\u003e\n\n\u003c!--install-shut--\u003e\n\n## Examples\n\nInclude:\n\n    require 'sixarm_ruby_password_attribute'\n    class User\n      include PasswordAttribute\n    end\n\nCreate new user:\n\n    user=User.new\n    user.password='secret'  # automatically converts plain text to bcrypt\n    user.save\n\nIs a user's password valid?\n\n    if user.password=='secret'\n      # password is valid\n    else\n      # password is invalid\n    end\n\n    u.password='secret'\n    =\u003e user's password is now secret\n\n    u.password=='secret'\n    =\u003e true\n\n    u.password=='xxx'\n    =\u003e false\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_password_attribute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsixarm%2Fsixarm_ruby_password_attribute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsixarm%2Fsixarm_ruby_password_attribute/lists"}