A package for password hashing and comparision using bcrypt
Project description
gopyhash
A package for password hashing and comparision using bcrypt.
Installation
pip install gopyhash
Usage
from gopyhash import generate_hash_from_text, compare_hash_and_text
# Generate a hash from a password
password = "my_secure_password"
hashed_password = generate_hash_from_text(password)
# Store hashed_password in your database
# ...
# Later, to verify a password
is_valid = compare_hash_and_text(hashed_password, "attempted_password")
if is_valid:
print("Password is correct!")
else:
print("Password is incorrect!")
Features
- Simple API for hashing passwords using bcrypt
- Verify passwords against existing hashes
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gopyhash-1.0.0.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gopyhash-1.0.0.tar.gz.
File metadata
- Download URL: gopyhash-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bb97f673695e85f9808badca0c1949165bbeeb434ed36e70de58bd79d56854b
|
|
| MD5 |
fe848cfc90d5e511bb04cb49012f3c33
|
|
| BLAKE2b-256 |
835ea9e70f66c6468765a3b05f628c44c6a0cebea07615bf7e52f2d5e3e331e0
|
File details
Details for the file gopyhash-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gopyhash-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c9fd5e1fc68be3d06e3a99030ba3adf470f289579c5b110a6267b218690caad
|
|
| MD5 |
92e8f53e6ae409dce2c965f9da1680fb
|
|
| BLAKE2b-256 |
6c82c52877da4b95e370babf89f89b9a6b799f52201dd0c8fc7f94a1415297c7
|