Skip to content

Releases: sebastienrousseau/hsh

Hash (HSH) 🦀 v0.0.8

12 May 07:13
cb88387
Compare
Choose a tag to compare

Release v0.0.8 - 2024-05-12

Hash (HSH) logo

Hash (HSH) v0.0.8

Quantum-Resistant Cryptographic Hash Library for Password Hashing and
Verification

Part of the Mini Functions family of libraries.

Hash (HSH) Banner

Made With Rust Crates.io Lib.rs Docs.rs License Codecov

WebsiteDocumentationReport BugRequest FeatureContributing Guidelines

divider

Overview 📖

The Hash (HSH) Rust library provides an interface for implementing secure hash and digest algorithms, specifically designed for password encryption and verification.

The library provides a simple API that makes it easy to store and verify hashed passwords. It enables robust security for passwords, using the latest advancements in Quantum-resistant cryptography. Quantum-resistant cryptography refers to cryptographic algorithms, that are thought to be secure against an attack by a quantum computer. As quantum computing continues to advance, this feature of the library assures that the passwords managed through this system remain secure even against cutting-edge computational capabilities.

The library supports the following Password Hashing Schemes (Password Based Key Derivation Functions):

  • Argon2i: A cutting-edge and highly secure key derivation function designed to protect against both traditional brute-force attacks and rainbow table attacks. (Recommended)
  • Bcrypt: A password hashing function designed to be secure against brute-force attacks. It is a work-factor function, which means that it takes a certain amount of time to compute. This makes it difficult to attack with a brute-force algorithm.
  • Scrypt: A password hashing function designed to be secure against both brute-force attacks and rainbow table attacks. It is a memory-hard and work-factor function, which means that it requires a lot of memory and time to compute. This makes it very difficult to attack with a GPU or other parallel computing device.

Features ✨

  • 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.
  • Quantum-resistant, making it secure against future attacks using quantum computers. This is an important feature as quantum computers become more powerful.
  • Easy to use. The library provides a simple API that makes it easy to store and verify hashed passwords.
  • 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.

Changelog 📚

Documentation:

  • 📝 Updated README.md with platform support.
  • 🐛 fix Expected: 80; Actual: 103

Refactorings:

  • ➖ Removed logger functions.

Testing:

  • ✅ Added new tests for test_argon2i.rs and updated copyrights.
  • ✅ Added new unit tests for test_bcrypt.

What's Changed

Full Changelog: v0.0.7...v0.0.8

Hash (HSH) 🦀 v0.0.7

05 Nov 17:07
ee5b116
Compare
Choose a tag to compare

Release v0.0.7 - 2023-11-05

Hash (HSH) logo

Hash (HSH) v0.0.7

Quantum-Resistant Cryptographic Hash Library for Password Hashing and
Verification

Part of the Mini Functions family of libraries.

Hash (HSH) Banner

Made With Rust Crates.io
Lib.rs Docs.rs
License Codecov

WebsiteDocumentationReport Bug
Request FeatureContributing Guidelines

divider

Overview 📖

The Hash (HSH) Rust library provides an interface for implementing secure hash and digest algorithms, specifically designed for password encryption and verification.

The library provides a simple API that makes it easy to store and verify hashed passwords. It enables robust security for passwords, using the latest advancements in Quantum-resistant cryptography. Quantum-resistant cryptography refers to cryptographic algorithms, that are thought to be secure against an attack by a quantum computer. As quantum computing continues to advance, this feature of the library assures that the passwords managed through this system remain secure even against cutting-edge computational capabilities.

The library supports the following Password Hashing Schemes (Password Based Key Derivation Functions):

  • Argon2i: A cutting-edge and highly secure key derivation function designed to protect against both traditional brute-force attacks and rainbow table attacks. (Recommended)
  • Bcrypt: A password hashing function designed to be secure against brute-force attacks. It is a work-factor function, which means that it takes a certain amount of time to compute. This makes it difficult to attack with a brute-force algorithm.
  • Scrypt: A password hashing function designed to be secure against both brute-force attacks and rainbow table attacks. It is a memory-hard and work-factor function, which means that it requires a lot of memory and time to compute. This makes it very difficult to attack with a GPU or other parallel computing device.

The library is a valuable tool for developers who need to store and verify passwords in a secure manner. It is easy to use and can be integrated into a variety of applications.

Features ✨

  • 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.
  • Quantum-resistant, making it secure against future attacks using quantum computers. This is an important feature as quantum computers become more powerful.
  • Easy to use. The library provides a simple API that makes it easy to store and verify hashed passwords.
  • 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.

Secure password storage

Hash (HSH) provides a secure way to store and verify hashed passwords. Passwords are hashed using the argon2i, bcrypt, scrypt algorithms, which are considered one of the most secure hashing algorithms available today. The library provides a simple interface for generating and verifying hashes, making it easy to implement secure password storage in any Rust application.

Easy to use

Hash (HSH) includes simple functions for generating and verifying password hashes, and managing password and salt values. Developers can easily integrate the library into their Rust projects and start using it right away. The library is designed to be intuitive and easy to use, so developers can build apps without worrying about password security.

Flexible

Hash (HSH) allows users to customize the length of passwords and salts used in generating hashes. This flexibility allows developers to tailor the library to their specific needs, whether they require shorter or longer password and salt values. The library also includes macros that make it easy to work with the Hash structure, allowing developers to quickly and easily set and retrieve password and salt values.

Lightweight

Hash (HSH) is a lightweight library that can easily integrate into any Rust project. The library has no external dependencies and is efficient. It means that developers can add secure password storage to their applications without having to worry about significant performance overheads.

Changelog 📚

Merge pull request #43 from sebastienrousseau/feat/hsh

What's Changed

Full Changelog: v0.0.6...v0.0.7

Hash (HSH) 🦀 v0.0.6

04 Oct 18:03
23a9e65
Compare
Choose a tag to compare

Release v0.0.6 - 2023-10-04

Hash (HSH) logo

Hash (HSH) v0.0.6

Quantum-Resistant Cryptographic Hash Library for Password Hashing and
Verification

Part of the Mini Functions family of libraries.

Hash (HSH) Banner

Made With Rust Crates.io
Lib.rs Docs.rs
License Codecov

WebsiteDocumentationReport Bug
Request FeatureContributing Guidelines

divider

Overview 📖

The Hash (HSH) Rust library provides an interface for implementing secure hash and digest algorithms, specifically designed for password encryption and verification.

The library provides a simple API that makes it easy to store and verify hashed passwords. It enables robust security for passwords, using the latest advancements in Quantum-resistant cryptography. Quantum-resistant cryptography refers to cryptographic algorithms, that are thought to be secure against an attack by a quantum computer. As quantum computing continues to advance, this feature of the library assures that the passwords managed through this system remain secure even against cutting-edge computational capabilities.

The library supports the following Password Hashing Schemes (Password Based Key Derivation Functions):

  • Argon2i: A cutting-edge and highly secure key derivation function designed to protect against both traditional brute-force attacks and rainbow table attacks. (Recommended)
  • Bcrypt: A password hashing function designed to be secure against brute-force attacks. It is a work-factor function, which means that it takes a certain amount of time to compute. This makes it difficult to attack with a brute-force algorithm.
  • Scrypt: A password hashing function designed to be secure against both brute-force attacks and rainbow table attacks. It is a memory-hard and work-factor function, which means that it requires a lot of memory and time to compute. This makes it very difficult to attack with a GPU or other parallel computing device.

The library is a valuable tool for developers who need to store and verify passwords in a secure manner. It is easy to use and can be integrated into a variety of applications.

Features ✨

  • 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.
  • Quantum-resistant, making it secure against future attacks using quantum computers. This is an important feature as quantum computers become more powerful.
  • Easy to use. The library provides a simple API that makes it easy to store and verify hashed passwords.
  • 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.

Secure password storage

Hash (HSH) provides a secure way to store and verify hashed passwords. Passwords are hashed using the argon2i, bcrypt, scrypt algorithms, which are considered one of the most secure hashing algorithms available today. The library provides a simple interface for generating and verifying hashes, making it easy to implement secure password storage in any Rust application.

Easy to use

Hash (HSH) includes simple functions for generating and verifying password hashes, and managing password and salt values. Developers can easily integrate the library into their Rust projects and start using it right away. The library is designed to be intuitive and easy to use, so developers can build apps without worrying about password security.

Flexible

Hash (HSH) allows users to customize the length of passwords and salts used in generating hashes. This flexibility allows developers to tailor the library to their specific needs, whether they require shorter or longer password and salt values. The library also includes macros that make it easy to work with the Hash structure, allowing developers to quickly and easily set and retrieve password and salt values.

Lightweight

Hash (HSH) is a lightweight library that can easily integrate into any Rust project. The library has no external dependencies and is efficient. It means that developers can add secure password storage to their applications without having to worry about significant performance overheads.

Changelog 📚

Merge pull request #39 from sebastienrousseau/feat/hsh

What's Changed

Full Changelog: v0.0.5...v0.0.6

Hash (HSH) 🦀 v0.0.5

10 Sep 22:45
891ecf6
Compare
Choose a tag to compare

Release v0.0.5 - 2023-09-10

Hash (HSH) logo

Hash (HSH) v0.0.5

Quantum-Resistant Cryptographic Hash Library for Password Hashing and
Verification

Part of the Mini Functions family of libraries.

Hash (HSH) Banner

Made With Rust Crates.io
Lib.rs Docs.rs
License Codecov

WebsiteDocumentationReport Bug
Request FeatureContributing Guidelines

divider

Overview 📖

The Hash (HSH) Rust library provides an interface for implementing secure hash and digest algorithms, specifically designed for password encryption and verification.

The library provides a simple API that makes it easy to store and verify hashed passwords. It enables robust security for passwords, using the latest advancements in Quantum-resistant cryptography. Quantum-resistant cryptography refers to cryptographic algorithms, that are thought to be secure against an attack by a quantum computer. As quantum computing continues to advance, this feature of the library assures that the passwords managed through this system remain secure even against cutting-edge computational capabilities.

The library supports the following Password Hashing Schemes (Password Based Key Derivation Functions):

  • Argon2i: A cutting-edge and highly secure key derivation function designed to protect against both traditional brute-force attacks and rainbow table attacks. (Recommended)
  • Bcrypt: A password hashing function designed to be secure against brute-force attacks. It is a work-factor function, which means that it takes a certain amount of time to compute. This makes it difficult to attack with a brute-force algorithm.
  • Scrypt: A password hashing function designed to be secure against both brute-force attacks and rainbow table attacks. It is a memory-hard and work-factor function, which means that it requires a lot of memory and time to compute. This makes it very difficult to attack with a GPU or other parallel computing device.

The library is a valuable tool for developers who need to store and verify passwords in a secure manner. It is easy to use and can be integrated into a variety of applications.

Features ✨

  • 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.
  • Quantum-resistant, making it secure against future attacks using quantum computers. This is an important feature as quantum computers become more powerful.
  • Easy to use. The library provides a simple API that makes it easy to store and verify hashed passwords.
  • 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.

Secure password storage

Hash (HSH) provides a secure way to store and verify hashed passwords. Passwords are hashed using the argon2i, bcrypt, scrypt algorithms, which are considered one of the most secure hashing algorithms available today. The library provides a simple interface for generating and verifying hashes, making it easy to implement secure password storage in any Rust application.

Easy to use

Hash (HSH) includes simple functions for generating and verifying password hashes, and managing password and salt values. Developers can easily integrate the library into their Rust projects and start using it right away. The library is designed to be intuitive and easy to use, so developers can build apps without worrying about password security.

Flexible

Hash (HSH) allows users to customize the length of passwords and salts used in generating hashes. This flexibility allows developers to tailor the library to their specific needs, whether they require shorter or longer password and salt values. The library also includes macros that make it easy to work with the Hash structure, allowing developers to quickly and easily set and retrieve password and salt values.

Lightweight

Hash (HSH) is a lightweight library that can easily integrate into any Rust project. The library has no external dependencies and is efficient. It means that developers can add secure password storage to their applications without having to worry about significant performance overheads.

Changelog 📚

Full Changelog: v0.0.4...v0.0.5

Artifacts 🎁

Hash (HSH) 🦀 v0.0.4

16 May 11:56
64d3f80
Compare
Choose a tag to compare

Release v0.0.4 - 2023-05-16

Hash (HSH) logo

Hash (HSH) v0.0.4

Quantum-Resistant Cryptographic Hash Library for Password Hashing and
Verification

Part of the Mini Functions family of libraries.

Hash (HSH) Banner

Made With Rust Crates.io Lib.rs Docs.rs License Codecov

WebsiteDocumentationReport BugRequest FeatureContributing Guidelines

divider

Overview 📖

The Hash (HSH) Rust library provides an interface for implementing secure hash and digest algorithms, specifically designed for password encryption and verification.

The library provides a simple API that makes it easy to store and verify hashed passwords. It enables robust security for passwords, using the latest advancements in Quantum-resistant cryptography. Quantum-resistant cryptography refers to cryptographic algorithms, that are thought to be secure against an attack by a quantum computer. As quantum computing continues to advance, this feature of the library assures that the passwords managed through this system remain secure even against cutting-edge computational capabilities.

The library supports the following Password Hashing Schemes (Password Based Key Derivation Functions):

  • Argon2i: A cutting-edge and highly secure key derivation function designed to protect against both traditional brute-force attacks and rainbow table attacks. (Recommended)
  • Bcrypt: A password hashing function designed to be secure against brute-force attacks. It is a work-factor function, which means that it takes a certain amount of time to compute. This makes it difficult to attack with a brute-force algorithm.
  • Scrypt: A password hashing function designed to be secure against both brute-force attacks and rainbow table attacks. It is a memory-hard and work-factor function, which means that it requires a lot of memory and time to compute. This makes it very difficult to attack with a GPU or other parallel computing device.

The library is a valuable tool for developers who need to store and verify passwords in a secure manner. It is easy to use and can be integrated into a variety of applications.

Features ✨

  • 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.
  • Quantum-resistant, making it secure against future attacks using quantum computers. This is an important feature as quantum computers become more powerful.
  • Easy to use. The library provides a simple API that makes it easy to store and verify hashed passwords.
  • 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.

Secure password storage

Hash (HSH) provides a secure way to store and verify hashed passwords. Passwords are hashed using the argon2i, bcrypt, scrypt algorithms, which are considered one of the most secure hashing algorithms available today. The library provides a simple interface for generating and verifying hashes, making it easy to implement secure password storage in any Rust application.

Easy to use

Hash (HSH) includes simple functions for generating and verifying password hashes, and managing password and salt values. Developers can easily integrate the library into their Rust projects and start using it right away. The library is designed to be intuitive and easy to use, so developers can build apps without worrying about password security.

Flexible

Hash (HSH) allows users to customize the length of passwords and salts used in generating hashes. This flexibility allows developers to tailor the library to their specific needs, whether they require shorter or longer password and salt values. The library also includes macros that make it easy to work with the Hash structure, allowing developers to quickly and easily set and retrieve password and salt values.

Lightweight

Hash (HSH) is a lightweight library that can easily integrate into any Rust project. The library has no external dependencies and is efficient. It means that developers can add secure password storage to their applications without having to worry about significant performance overheads.

Changelog 📚

New Contributors

Full Changelog: v0.0.3...v0.0.4

Hash (HSH) 🦀 v0.0.3

04 May 08:01
0da7afd
Compare
Choose a tag to compare

Release v0.0.3 - 2023-05-03

Hash (HSH) logo

Hash (HSH)

Quantum-Resistant Cryptographic Hash Library for Password Hashing and
Verification in Rust 🦀

Hash (HSH) Banner

Made With Rust Crates.io
Lib.rs Docs.rs
License Codecov

WebsiteDocumentationReport Bug
Request FeatureContributing Guidelines

divider

Overview 📖

The Hash (HSH) library is a cryptographic hash library for password hashing and verification in Rust, designed to provide robust security for passwords, utilizing the latest advancements in quantum-resistant cryptography.

The library is designed to be easy to use, with a simple API that allows for the generation, retrieval, and verification of password hashes.

It supports the following hash algorithms:

  • Argon2i: A memory-hard password hashing function designed to be secure against both brute-force attacks and rainbow table attacks.
  • Bcrypt: A password hashing function designed to be secure against brute-force attacks. It is a work-factor function, which means that it takes a certain amount of time to compute. This makes it difficult to attack with a brute-force algorithm.
  • Scrypt: A password hashing function designed to be secure against both brute-force attacks and rainbow table attacks. It is a memory-hard and work- factor function, which means that it requires a lot of memory and time to compute. This makes it very difficult to attack with a GPU or other parallel computing device.

Features ✨

  • Generates string representations of the hash
  • Includes methods for setting and verifying passwords against the hash
  • Provides functions for generating hashes and salts
  • Rust library for hashing and verifying passwords
  • Supports external crates such as argon2rs, base64, bcrypt, scrypt, and
    vrd.
  • Supports multiple hash algorithms (argon2i, bcrypt, scrypt)
  • Written in Rust for speed and security

Secure password storage

Hash (HSH) provides a secure way to store and verify hashed passwords. Passwords are hashed using the Argon2i, Bcrypt, Scrypt algorithms, which are considered one of the most secure hashing algorithms available today. The library provides a simple interface for generating and verifying hashes, making it easy to implement secure password storage in any Rust application.

Easy to use

Hash (HSH) includes simple functions for generating and verifying password hashes, and managing password and salt values. Developers can easily integrate the library into their Rust projects and start using it right away. The library is designed to be intuitive and easy to use, so developers can build apps without worrying about password security.

Flexible

Hash (HSH) allows users to customize the length of passwords and salts used in generating hashes. This flexibility allows developers to tailor the library to their specific needs, whether they require shorter or longer password and salt values. The library also includes macros that make it easy to work with the Hash structure, allowing developers to quickly and easily set and retrieve password and salt values.

Lightweight

Hash (HSH) is a lightweight library that can easily integrate into any Rust project. The library has no external dependencies and is efficient. It means that developers can add secure password storage to their applications without having to worry about significant performance overheads.

Changelog 📚

What's Changed

New Contributors

Full Changelog: v0.0.2...v0.0.3

Hash (HSH) 🦀 v0.0.2

13 Feb 16:53
d8c008e
Compare
Choose a tag to compare

HSH

Quantum-Resistant Cryptographic Hash Library for Password Hashing and Verification in Rust 🦀

Made With Rust Crates.io Lib.rs Docs.rs License Codecov

divider

Welcome to HSH 👋

HSH Banner

Website
Documentation
Report Bug
Request Feature
Contributing Guidelines

Overview 📖

The Hash (HSH) library is a cryptographic hash library for password hashing and verification in Rust, based on the argon2rs crate.

This library is designed to provide robust security for passwords, utilizing the latest advancements in quantum-resistant cryptography.

It is based on the argon2rs crate. The library implements a struct named Hash that provides various methods for password hash generation, retrieval, and verification.

Features ✨

Hash Struct

The Hash struct has three fields:

  • password: A string that stores the plaintext password.
  • hash: A vector of bytes that stores the hashed password.
  • salt: A vector of bytes that stores the salt used for password
    hashing.

Hash Methods

The Hash structure provides the following methods for password hashing
and verification:

  • generate_hash: A static method that generates a hash from a plaintext password and salt.
  • hash: A method that returns the hash as a slice of bytes.
  • salt: A method that returns the salt as a slice of bytes.
  • hash_length: A method that returns the length of the hash.
  • new: A constructor method that creates a new Hash struct instance with the given plaintext password and salt.
  • password: A method that returns the password as a string.
  • password_length: A method that returns the length of the password.
  • set_password: A method that sets a new password and generates a new hash.
  • set_hash: A method that sets a new hash.
  • set_salt: A method that sets a new salt.
  • from_hash: A method that creates a Hash struct instance from a given hash.
  • verify: A method that verifies a plaintext password against the stored hash.
  • to_string_representation: A method that returns the hash as a string.

Traits

The Hash struct also implements the following traits:

  • FromStr: Allows the Hash struct to be converted from a string.
  • std::fmt::Display: Allows the Hash struct to be printed as a string.

Macros

The library also provides several macros for common operations on the Hash struct:

  • password_length: Returns the length of the password for a given Hash struct instance.
  • set_hash: Sets a new hash value for a given Hash struct instance.
  • set_password: Sets a new password and salt value for a given Hash struct instance.
  • set_salt: Sets a new salt value for a given Hash struct instance.
  • generate_hash: Generates a new hash for a given password and salt.
  • verify_password: Verifies if the password matches the hash of a given Hash struct instance.
  • new_hash: Creates a new instance of the Hash struct with the given password and salt.
  • display_hash: Prints the hash of a given Hash struct instance to the console.
  • to_string: Converts a given Hash struct instance to a string.

Security and Performance

It is important to note that the library uses the argon2rs crate for password hashing, which is a secure and quantum-resistant password hashing library.

Installation 📦

It takes just a few minutes to get up and running with hsh.

Requirements

hsh requires Rust 1.67.0 or later.

Documentation

ℹ️ Info: Please check out our website for more information and find our documentation on docs.rs, lib.rs and crates.io.

Usage 📖

To use hsh in your project, add the following to your Cargo.toml file:

[dependencies]
hsh = "0.0.2"

Add the following to your main.rs file:

extern crate hsh;
use hsh::*;

then you can use the functions in your application code.

Examples

HRC comes with a set of examples that you can use to get started. The examples are located in the examples directory of the project. To run the examples, clone the repository and run the following command in your terminal from the project root directory.

cargo run --example hsh

Semantic Versioning Policy 🚥

For transparency into our release cycle and in striving to maintain backward compatibility, QRC follows semantic versioning.

License 📝

The project is licensed under the terms of both the MIT license and the Apache License (Version 2.0).

Contribution 🤝

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

divider

Acknowledgements 💙

A big thank you to all the awesome contributors of Mini Functions
for their help and support.

And a special thank you goes to the Rust Reddit community for providing a lot of useful suggestions on how to improve this project.