{"repo":"Racum/rust-djangohashers","free":true,"listed":false,"github":"https://github.com/Racum/rust-djangohashers","clone":"git clone https://github.com/Racum/rust-djangohashers.git","description":"A Rust port of the password primitives used in Django Project.","language":"Rust","stars":61,"topics":["django","rust","algorithm","pbkdf2","rust-port","password","password-hash","cryptography","hashes","bcrypt"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Rust DjangoHashers A Rust port of the password primitives used in Django Project. Django's django.contrib.auth.models.User class has a few methods to deal with passwords, like set password() and check password() ; DjangoHashers implements the primitive functions behind those methods. All Django's built-in hashers are supported. This library was conceived for Django integration, but is not limited to it; you can use the password hash algorithm in any Rust project (or FFI integration), since its security model is already battle-tested. TL;DR Content of examples/tldr.rs : Output: Installation Add the dependency to your Cargo.toml : Reference and import: Compiling Features By default all the hashers are enabled, but you can pick only the hashers that you need to avoid unneeded dependencies. default : all hashers. with pbkdf2 : only PBKDF2 and PBKDF2SHA1 . with argon2 : only Argon2 . with scrypt : only Scrypt . with bcrypt : only BCrypt and BCryptSHA256 . with legacy : only SHA1 , MD5 , UnsaltedSHA1 , UnsaltedMD5 and Crypt . fpbkdf2 : enables Fast PBKDF2 (requires OpenSSL, see below). fuzzy tests : only for development, enables fuzzy tests. Fast PBKDF2 Version Depending on your platform, OS and version of libraries, it is possible that DjangoHashers can be slower than Python/Django's reference implementation. If performance is critical for your case, there is an alternatice implementation: the package fastpbkdf2 uses a C-binding of a library that requires OpenSSL. If ring 's imple","default_branch":null,"files":null,"tree":[],"storefront":"/r/Racum","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Racum/rust-djangohashers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}