Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/messense/sha512-crypt
Python binding to Rust sha-crypt password hashing crate
https://github.com/messense/sha512-crypt
Last synced: 28 days ago
JSON representation
Python binding to Rust sha-crypt password hashing crate
- Host: GitHub
- URL: https://github.com/messense/sha512-crypt
- Owner: messense
- License: mit
- Created: 2021-09-17T11:55:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T20:14:22.000Z (over 1 year ago)
- Last Synced: 2024-10-04T12:42:12.777Z (about 1 month ago)
- Language: Python
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sha512-crypt
![CI](https://github.com/messense/sha512-crypt/workflows/CI/badge.svg)
[![PyPI](https://img.shields.io/pypi/v/sha512-crypt.svg)](https://pypi.org/project/sha512-crypt)Python binding to Rust [sha-crypt](https://github.com/RustCrypto/password-hashes/tree/master/sha-crypt) password hashing crate.
## Installation
```bash
pip install sha512-crypt
```## Usage
```python
import sha512_cryptpassword = 'abc'
hashed = sha512_crypt.encrypt(password)
assert sha512_crypt.verify(password, hashed), 'wrong password'
```## License
This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.