{"id":13733340,"url":"https://github.com/sru-systems/rust-argon2","last_synced_at":"2026-04-09T14:03:39.548Z","repository":{"id":18691331,"uuid":"83714826","full_name":"sru-systems/rust-argon2","owner":"sru-systems","description":"Rust library for hashing passwords using Argon2.","archived":false,"fork":false,"pushed_at":"2024-01-08T19:30:19.000Z","size":137,"stargazers_count":228,"open_issues_count":5,"forks_count":31,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T12:15:06.539Z","etag":null,"topics":["argon2","argon2d","argon2i","argon2id","password-hasher","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sru-systems.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2017-03-02T19:10:05.000Z","updated_at":"2025-04-11T00:52:33.000Z","dependencies_parsed_at":"2024-06-18T17:08:16.184Z","dependency_job_id":"fee4943e-bdd4-432e-894e-dc5c08792421","html_url":"https://github.com/sru-systems/rust-argon2","commit_stats":{"total_commits":65,"total_committers":12,"mean_commits":5.416666666666667,"dds":0.5384615384615384,"last_synced_commit":"583c98c2c91b5dc2496265f216b0d5083269b02a"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sru-systems%2Frust-argon2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sru-systems%2Frust-argon2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sru-systems%2Frust-argon2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sru-systems%2Frust-argon2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sru-systems","download_url":"https://codeload.github.com/sru-systems/rust-argon2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253036569,"owners_count":21844238,"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":["argon2","argon2d","argon2i","argon2id","password-hasher","rust"],"created_at":"2024-08-03T03:00:41.468Z","updated_at":"2025-12-12T16:55:03.277Z","avatar_url":"https://github.com/sru-systems.png","language":"Rust","funding_links":[],"categories":["Rust","Libraries"],"sub_categories":["Rust"],"readme":"# Rust-argon2\n\nRust library for hashing passwords using\n[Argon2](https://github.com/P-H-C/phc-winner-argon2), the password-hashing\nfunction that won the\n[Password Hashing Competition (PHC)](https://password-hashing.net).\n\n## Usage\n\nTo use `rust-argon2`, add the following to your Cargo.toml:\n\n```toml\n[dependencies]\nrust-argon2 = \"2.1\"\n```\n\nAnd the following to your crate root:\n\n```rust\nextern crate argon2;\n```\n\n\n## Examples\n\nCreate a password hash using the defaults and verify it:\n\n```rust\nuse argon2::{self, Config};\n\nlet password = b\"password\";\nlet salt = b\"randomsalt\";\nlet config = Config::default();\nlet hash = argon2::hash_encoded(password, salt, \u0026config).unwrap();\nlet matches = argon2::verify_encoded(\u0026hash, password).unwrap();\nassert!(matches);\n```\n\nCreate a password hash with custom settings and verify it:\n\n```rust\nuse argon2::{self, Config, Variant, Version};\n\nlet password = b\"password\";\nlet salt = b\"othersalt\";\nlet config = Config {\n    variant: Variant::Argon2i,\n    version: Version::Version13,\n    mem_cost: 65536,\n    time_cost: 10,\n    lanes: 4,\n    secret: \u0026[],\n    ad: \u0026[],\n    hash_length: 32\n};\nlet hash = argon2::hash_encoded(password, salt, \u0026config).unwrap();\nlet matches = argon2::verify_encoded(\u0026hash, password).unwrap();\nassert!(matches);\n```\n\n\n## Limitations\n\nThis crate has the same limitation as the `blake2-rfc` crate that it uses.\nIt does not attempt to clear potentially sensitive data from its work\nmemory. To do so correctly without a heavy performance penalty would\nrequire help from the compiler. It's better to not attempt to do so than to\npresent a false assurance.\n\nThis version uses the standard implementation and does not yet implement\noptimizations. Therefore, it is not the fastest implementation available.\n\n\n## License\n\nRust-argon2 is dual licensed under the [MIT](LICENSE-MIT) and\n[Apache 2.0](LICENSE-APACHE) licenses, the same licenses as the Rust compiler.\n\n\n## Contributions\n\nContributions are welcome. By submitting a pull request you are agreeing to\nmake you work available under the license terms of the Rust-argon2 project.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsru-systems%2Frust-argon2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsru-systems%2Frust-argon2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsru-systems%2Frust-argon2/lists"}