{"id":22202522,"url":"https://github.com/jlduran/secure_password","last_synced_at":"2025-03-25T01:46:36.596Z","repository":{"id":87990747,"uuid":"165128007","full_name":"jlduran/secure_password","owner":"jlduran","description":"This is a drop-in replacement for rails' secure_password using scrypt.","archived":false,"fork":false,"pushed_at":"2019-01-10T20:51:35.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T03:27:57.821Z","etag":null,"topics":["rails","ruby","scrypt"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlduran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-10T20:41:59.000Z","updated_at":"2019-01-10T20:55:48.000Z","dependencies_parsed_at":"2023-05-22T06:45:32.001Z","dependency_job_id":null,"html_url":"https://github.com/jlduran/secure_password","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/jlduran%2Fsecure_password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlduran%2Fsecure_password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlduran%2Fsecure_password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlduran%2Fsecure_password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlduran","download_url":"https://codeload.github.com/jlduran/secure_password/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245383119,"owners_count":20606265,"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":["rails","ruby","scrypt"],"created_at":"2024-12-02T16:30:00.962Z","updated_at":"2025-03-25T01:46:36.575Z","avatar_url":"https://github.com/jlduran.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a drop-in replacement for rails' `secure_password` using scrypt.\n\nTo use, just copy the files into the appropriate directories:\n\n-   [`config/initializers/secure_password.rb`]: Overrides bcrypt with scrypt\n\n-   [`config/initializers/filter_parameter_logging.rb`]: Ugly patch to\n    hide the digest from the SQL logs.\n\n    ```sql\n    D, [2019-01-01T12:00:00.000000 #00000] DEBUG -- : [00000000-0000-0000-0000-000000000000]   User Create (0.1ms)  INSERT INTO \"users\" (\"email\", \"password_digest\", \"created_at\", \"updated_at\") VALUES ($1, $2, $3, $4) RETURNING \"id\"  [[\"email\", \"user@example.com\"], [\"password_digest\", \"[FILTERED]\"], [\"created_at\", \"2019-01-01 12:00:00.000000\"], [\"updated_at\", \"2019-01-01 12:00:00.000000\"]]\n    D, [2019-01-01T12:00:00.000000 #00000] DEBUG -- : [00000000-0000-0000-0000-000000000000]    (0.1ms)  COMMIT\n    ```\n\n-   [`app/models/concerns/hidden_passwords.rb`]: Removes `password_digest`\nfrom serialized output.  Include in the `User` model.\n\n    For example:\n\n    ```ruby\n    irb(main):001:0\u003e User.first\n      User Load (0.1ms)  SELECT  \"users\".* FROM \"users\" ORDER BY \"users\".\"id\" ASC LIMIT $1  [[\"LIMIT\", 1]]\n    =\u003e #\u003cUser id: 1, email: \"user@example.com\", created_at: \"2019-01-01 12:00:00\", updated_at: \"2019-01-01 12:00:00\"\u003e\n    irb(main):002:0\u003e User.first.inspect\n      User Load (0.1ms)  SELECT  \"users\".* FROM \"users\" ORDER BY \"users\".\"id\" ASC LIMIT $1  [[\"LIMIT\", 1]]\n    =\u003e \"#\u003cUser id: 1, email: \\\"user@example.com\\\", created_at: \\\"2019-01-01 12:00:00\\\", updated_at: \\\"2019-01-01 12:00:00\\\"\u003e\"\n    ```\n\nIn `Gemfile` replace the `bcrypt` gem with `scrypt`.\n\n[`config/initializers/secure_password.rb`]: https://github.com/jlduran/secure_password/blob/master/config/initializers/secure_password.rb\n[`config/initializers/filter_parameter_logging.rb`]: https://github.com/jlduran/secure_password/blob/master/config/initializers/filter_parameter_logging.rb\n[`app/models/concerns/hidden_passwords.rb`]: https://github.com/jlduran/secure_password/blob/master/app/models/concerns/hidden_passwords.rb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlduran%2Fsecure_password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlduran%2Fsecure_password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlduran%2Fsecure_password/lists"}