Crates.io | libpasta |
lib.rs | libpasta |
version | 0.1.2 |
source | src |
created_at | 2017-11-08 11:12:01.042108 |
updated_at | 2021-05-29 15:51:35.420038 |
description | All-inclusive password hashing library |
homepage | |
repository | https://github.com/libpasta/libpasta |
max_upload_size | |
id | 38585 |
size | 138,811 |
This library aims to be a all-in-one solution for password storage. In particular, we aim to provide:
Easy-to-use password storage with sane defaults.
Tools to provide parameter tuning for different use cases.
Automatic migration of password hashes to new algorithms.
libpasta is designed to be as simple to use as possible. Most users would rather not have to choose which password algorithm to use, nor understand what are the best parameter choices.
Therefore, we take great care to make this all opaque to the user:
let password = "hunter2".owned();
let hash = hash_password(password);
// store hash in database
// ... time passes, user returns ...
let password = "hunter2".owned();
if verify_password(password, &hash) {
// do something
}
A brief comparison between libpasta and some alternatives can be found in the documentation.
To build the libpasta
system library, simply run make
. This outputs
a build/libpasta.so
file (or system-appropriate filename).
You can also try running make install
to automatically move it to the correct
location.
The library is generated as a result of building libpasta-capi, which is a C-API wrapper built around the Rust code.
libpasta is still currently in maintenance mode. The current API is at 0.1.1 and is reasonably stable. But at this time no future improvements are planned.
Please feel free to open new issues or pull requests for any bugs found, feature requests, or general suggestions.
We very much welcome any contributions, and simply ask for patience and civility when dealing with any disagreements or problems.
libpasta is licensed under the MIT license: License.