{"id":23200915,"url":"https://github.com/naokikimura/phc_string_format","last_synced_at":"2025-08-18T23:32:48.520Z","repository":{"id":52298227,"uuid":"137234840","full_name":"naokikimura/phc_string_format","owner":"naokikimura","description":"PHC string format implemented by Ruby","archived":false,"fork":false,"pushed_at":"2024-10-30T03:35:43.000Z","size":72,"stargazers_count":0,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T01:12:23.868Z","etag":null,"topics":[],"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/naokikimura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2018-06-13T15:28:23.000Z","updated_at":"2021-02-28T13:30:55.000Z","dependencies_parsed_at":"2024-07-17T09:47:18.946Z","dependency_job_id":"ef24ac5d-6274-406f-94d1-79dae5b9b265","html_url":"https://github.com/naokikimura/phc_string_format","commit_stats":{"total_commits":71,"total_committers":7,"mean_commits":"10.142857142857142","dds":"0.15492957746478875","last_synced_commit":"209443f9645358084b26ee4a90c461c56ac5e12d"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fphc_string_format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fphc_string_format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fphc_string_format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naokikimura%2Fphc_string_format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naokikimura","download_url":"https://codeload.github.com/naokikimura/phc_string_format/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230292743,"owners_count":18203649,"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":[],"created_at":"2024-12-18T15:13:18.149Z","updated_at":"2024-12-18T15:13:18.753Z","avatar_url":"https://github.com/naokikimura.png","language":"Ruby","readme":"# PhcStringFormat\n\n[![Gem Version](https://badge.fury.io/rb/phc_string_format.svg)](https://badge.fury.io/rb/phc_string_format)\n[![Build Status](https://travis-ci.org/naokikimura/phc_string_format.svg?branch=master)](https://travis-ci.org/naokikimura/phc_string_format)\n[![Known Vulnerabilities](https://snyk.io/test/github/naokikimura/phc_string_format/badge.svg?targetFile=Gemfile.lock)](https://snyk.io/test/github/naokikimura/phc_string_format?targetFile=Gemfile.lock)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cbcb6fa3556447a4af16980f3cc6f1eb)](https://app.codacy.com/app/naokikimura/phc_string_format?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=naokikimura/phc_string_format\u0026utm_campaign=badger)\n[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/26df342921414ee69b69f028cefe4f3b)](https://www.codacy.com/app/naokikimura/phc_string_format?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=naokikimura/phc_string_format\u0026utm_campaign=Badge_Coverage)\n\nPHC string format implemented by Ruby\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'phc_string_format'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install phc_string_format\n\n## Usage\n\n```ruby\nrequire 'phc_string_format'\n\nencrypted_password = '$argon2i$v=19$m=4096,t=3,p=1$IfH5R3O3r3501DfGnGr2rw$DfQ8Hv9R2eF2uBs1dR99IGjVjDl/rpkJIkaNyZ1g3pk'\n\n# parse\nphc_string_args = PhcStringFormat::Formatter.parse(encrypted_password)\n# =\u003e {:id=\u003e\"argon2i\", :version=\u003e19, :params=\u003e{\"m\"=\u003e4096, \"t\"=\u003e3, \"p\"=\u003e1}, :salt=\u003e\"!\\xF1\\xF9Gs\\xB7\\xAF~t\\xD47\\xC6\\x9Cj\\xF6\\xAF\", :hash=\u003e\"\\r\\xF4\u003c\\x1E\\xFFQ\\xD9\\xE1v\\xB8\\e5u\\x1F} h\\xD5\\x8C9\\x7F\\xAE\\x99\\t\\\"F\\x8D\\xC9\\x9D`\\xDE\\x99\"}\n\n# format\npassword_hash = PhcStringFormat::Formatter.format(phc_string_args)\n\npassword_hash == encrypted_password\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/naokikimura/phc_string_format.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaokikimura%2Fphc_string_format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaokikimura%2Fphc_string_format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaokikimura%2Fphc_string_format/lists"}