Metadata-Version: 2.4
Name: gopyhash
Version: 1.0.0
Summary: A package for password hashing and comparision using bcrypt
Author-email: Humaun Kabir <hello@ihumaun.com>
License: MIT
Project-URL: Homepage, https://github.com/ihumaunkabir/python-hash
Project-URL: Bug Tracker, https://github.com/ihumaunkabir/python-hash/issues
Keywords: bcrypt,security,password,text,hashing
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: bcrypt>=4.0.0
Dynamic: license-file

![pipeline](https://github.com/ihumaunkabir/python-hash/actions/workflows/publish.yml/badge.svg)

# gopyhash

A package for password hashing and comparision using bcrypt. 

## Installation

```bash
pip install gopyhash
```

## Usage

```python
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
