{"id":16616902,"url":"https://github.com/sebastienrousseau/hsh","last_synced_at":"2025-03-16T21:31:12.757Z","repository":{"id":65846992,"uuid":"600240201","full_name":"sebastienrousseau/hsh","owner":"sebastienrousseau","description":"Quantum-Resistant Cryptographic Hash Library for Password Hashing and Verification 🦀","archived":false,"fork":false,"pushed_at":"2025-02-21T08:05:34.000Z","size":2114,"stargazers_count":17,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T14:47:49.950Z","etag":null,"topics":["argon2","argon2i","bcrypt","cryptographic-hash-functions","hash","hashing","hashing-algorithm","hashing-algorithms","postquantum","quantum-cryptography","quantum-resistant","rust","rust-library","scrypt","security","verification"],"latest_commit_sha":null,"homepage":"https://hshlib.one/","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/sebastienrousseau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE-APACHE","code_of_conduct":".github/CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"sebastienrousseau","custom":"https://paypal.me/wwdseb"}},"created_at":"2023-02-10T22:43:19.000Z","updated_at":"2025-01-21T20:02:45.000Z","dependencies_parsed_at":"2023-10-01T14:52:26.189Z","dependency_job_id":"12fd745f-90df-4d9f-9d46-5c818d83cc89","html_url":"https://github.com/sebastienrousseau/hsh","commit_stats":{"total_commits":141,"total_committers":2,"mean_commits":70.5,"dds":"0.14893617021276595","last_synced_commit":"4b5f44281535ce78205cee3beca67622396e1de2"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienrousseau%2Fhsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienrousseau%2Fhsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienrousseau%2Fhsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastienrousseau%2Fhsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastienrousseau","download_url":"https://codeload.github.com/sebastienrousseau/hsh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830952,"owners_count":20354854,"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","argon2i","bcrypt","cryptographic-hash-functions","hash","hashing","hashing-algorithm","hashing-algorithms","postquantum","quantum-cryptography","quantum-resistant","rust","rust-library","scrypt","security","verification"],"created_at":"2024-10-12T02:14:36.484Z","updated_at":"2025-03-16T21:31:12.477Z","avatar_url":"https://github.com/sebastienrousseau.png","language":"Rust","funding_links":["https://github.com/sponsors/sebastienrousseau","https://paypal.me/wwdseb"],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\n\u003cimg src=\"https://kura.pro/hsh/images/logos/hsh.svg\"\nalt=\"Hash (HSH) logo\" width=\"261\" align=\"right\" /\u003e\n\n\u003c!-- markdownlint-enable MD033 MD041 --\u003e\n# Hash (HSH)\n\nQuantum-Resistant Cryptographic Hash Library for Password Hashing and\nVerification\n\n*Part of the [Mini Functions][0] family of libraries.*\n\n\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\u003ccenter\u003e\n\u003c!-- markdownlint-enable MD033 MD041 --\u003e\n\n![Hash (HSH) Banner][banner]\n\n[![Made With Rust][made-with-rust]][6] [![Crates.io][crates-badge]][8]\n[![Lib.rs][libs-badge]][10] [![Docs.rs][docs-badge]][9]\n[![License][license-badge]][2] [![Codecov][codecov-badge]][11]\n\n• [Website][0] • [Documentation][9] • [Report Bug][3]\n• [Request Feature][3] • [Contributing Guidelines][4]\n\n\u003c!-- markdownlint-disable MD033 MD041 --\u003e\n\u003c/center\u003e\n\u003c!-- markdownlint-enable MD033 MD041 --\u003e\n\n![divider][divider]\n\n## Overview 📖\n\nThe `Hash (HSH)` Rust library provides an interface for implementing\nsecure hash and digest algorithms, specifically designed for password\nencryption and verification.\n\nThe library provides a simple API that makes it easy to store and verify\nhashed passwords. It enables robust security for passwords, using the\nlatest advancements in `Quantum-resistant cryptography`. Quantum-\nresistant cryptography refers to cryptographic algorithms, usually\npublic-key algorithms, that are thought to be secure against an attack\nby a quantum computer. As quantum computing continues to advance, this\nfeature of the library assures that the passwords managed through this\nsystem remain secure even against cutting-edge computational\ncapabilities.\n\nThe library supports the following Password Hashing Schemes (Password\nBased Key Derivation Functions):\n\n- [**Argon2i**](\u003chttps://en.wikipedia.org/wiki/Argon2\u003e): A cutting-edge\n  and highly secure key derivation function designed to protect against\n  both traditional brute-force attacks and rainbow table attacks.\n  (Recommended)\n- [**Bcrypt**](\u003chttps://en.wikipedia.org/wiki/Bcrypt\u003e): A password\n  hashing function designed to be secure against brute-force attacks.\n  It is a work-factor function, which means that it takes a certain\n  amount of time to compute. This makes it difficult to attack with a\n  brute-force algorithm.\n- [**Scrypt**](\u003chttps://en.wikipedia.org/wiki/Scrypt\u003e): A password\n  hashing function designed to be secure against both brute-force\n  attacks and rainbow table attacks. It is a memory-hard and work-\n  factor function, which means that it requires a lot of memory and\n  time to compute. This makes it very difficult to attack with a GPU\n  or other parallel computing device.\n\nThe library is a valuable tool for developers who need to store and\nverify passwords in a secure manner. It is easy to use and can be\nintegrated into a variety of applications.\n\n## Features ✨\n\n- **Compliant with multiple Password Hashing Schemes (Password Based Key Derivation Functions) such as Argon2i, Bcrypt and Scrypt.** This makes the library more versatile and can be used in a variety of applications.\n- **Quantum-resistant, making it secure against future attacks using quantum computers.** This is an important feature as quantum computers become more powerful.\n- **Easy to use.** The library provides a simple API that makes it easy to store and verify hashed passwords.\n- **Can be integrated into a variety of applications.** The library is written in Rust, which makes it easy to integrate into any Rust project and is fast, efficient, and secure.\n\n### Secure password storage\n\nHash (HSH) provides a secure way to store and verify hashed passwords.\nPasswords are hashed using the argon2i, bcrypt, scrypt algorithms, which\nare considered one of the most secure hashing algorithms available\ntoday. The library provides a simple interface for generating and\nverifying hashes, making it easy to implement secure password storage\nin any Rust application.\n\n### Easy to use\n\nHash (HSH) includes simple functions for generating and verifying\npassword hashes, and managing password and salt values. Developers can\neasily integrate the library into their Rust projects and start using\nit right away. The library is designed to be intuitive and easy to use,\nso developers can build apps without worrying about password security.\n\n### Flexible\n\nHash (HSH) allows users to customize the length of passwords and salts\nused in generating hashes. This flexibility allows developers to tailor\nthe library to their specific needs, whether they require shorter or\nlonger password and salt values. The library also includes macros that\nmake it easy to work with the Hash structure, allowing developers to\nquickly and easily set and retrieve password and salt values.\n\n### Lightweight\n\nHash (HSH) is a lightweight library that can easily integrate into any\nRust project. The library has no external dependencies and is efficient.\nIt means that developers can add secure password storage to their\napplications without having to worry about significant performance\noverheads.\n\n## Installation 📦\n\nIt takes just a few minutes to get up and running with `hsh`.\n\n### Requirements\n\nThe minimum supported Rust toolchain version is currently Rust\n**1.60** or later (stable). It is recommended that you install the\nlatest stable version of Rust.\n\n### Platform support\n\n`hsh` supports a variety of CPU architectures. It is supported and tested on\nMacOS, Linux, and Windows.\n\n### Documentation\n\n\u003e ℹ️ **Info:** Please check out our [website][0] for more information\nand find our documentation on [docs.rs][9], [lib.rs][10] and\n[crates.io][8].\n\n## Usage 📖\n\nTo use `hsh` in your project, add the following to your `Cargo.toml`\nfile:\n\n```toml\n[dependencies]\nhsh = \"0.0.8\"\n```\n\nAdd the following to your `main.rs` file:\n\n```rust\nextern crate hsh;\nuse hsh::*;\n```\n\nthen you can use the functions in your application code.\n\n### Examples\n\n`Hash (HSH)` comes with a set of examples that you can use to get\nstarted. The examples are located in the `examples` directory of the\nproject. To run the examples, clone the repository and run the following\ncommand in your terminal from the project root directory.\n\n```shell\ncargo run --example hsh\n```\n\n## Semantic Versioning Policy 🚥\n\nFor transparency into our release cycle and in striving to maintain\nbackward compatibility, `Hash (HSH)` follows [semantic versioning][7].\n\n## License 📝\n\nThe project is licensed under the terms of both the MIT license and the\nApache License (Version 2.0).\n\n- [Apache License, Version 2.0][1]\n- [MIT license][2]\n\n## Contribution 🤝\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms\nor conditions.\n\n![divider][divider]\n\n## Acknowledgements 💙\n\nA big thank you to all the awesome contributors of [Mini Functions][6]\nfor their help and support.\n\nAnd a special thank you goes to the\n[Rust Reddit](https://www.reddit.com/r/rust/) community for providing a\nlot of useful suggestions on how to improve this project.\n\n[0]: https://minifunctions.com/hsh\n[1]: http://www.apache.org/licenses/LICENSE-2.0\n[2]: http://opensource.org/licenses/MIT\n[3]: https://github.com/sebastienrousseau/hsh/issues\n[4]: https://raw.githubusercontent.com/sebastienrousseau/hsh/main/.github/CONTRIBUTING.md\n[6]: https://github.com/sebastienrousseau/hsh/graphs/contributors\n[7]: http://semver.org/\n[8]: https://crates.io/crates/hsh\n[9]: https://docs.rs/hsh\n[10]: https://lib.rs/crates/hsh\n[11]: https://codecov.io/github/sebastienrousseau/hsh\n\n[banner]: https://kura.pro/hsh/images/titles/title-hsh.svg \"Hash (HSH) Banner\"\n[codecov-badge]: https://img.shields.io/codecov/c/github/sebastienrousseau/cmn?style=for-the-badge\u0026token=DMNW4DN0LO 'Codecov'\n[crates-badge]: https://img.shields.io/crates/v/hsh.svg?style=for-the-badge 'Crates.io'\n[divider]: https://kura.pro/common/images/elements/divider.svg \"divider\"\n[docs-badge]: https://img.shields.io/docsrs/hsh.svg?style=for-the-badge 'Docs.rs'\n[libs-badge]: https://img.shields.io/badge/lib.rs-v0.0.8-orange.svg?style=for-the-badge 'Lib.rs'\n[license-badge]: https://img.shields.io/crates/l/hsh.svg?style=for-the-badge 'License'\n[made-with-rust]: https://img.shields.io/badge/rust-f04041?style=for-the-badge\u0026labelColor=c0282d\u0026logo=rust 'Made With Rust'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastienrousseau%2Fhsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastienrousseau%2Fhsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastienrousseau%2Fhsh/lists"}