CosmosHashLib-0.0.9
توضیحات
A simple hashing wrapper with support for salts and peppers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | CosmosHashLib-0.0.9 |
| نام | CosmosHashLib |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Cosmos Bots |
| ایمیل نویسنده | contact@cosmosbots.com |
| آدرس صفحه اصلی | https://github.com/vihangatheturtle/CosmosHashLib |
| آدرس اینترنتی | https://pypi.org/project/CosmosHashLib/ |
| مجوز | - |
# CosmosHashLib
A simple hashing wrapper with support for salts and peppers
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install CosmosHashLib.
```bash
pip install CosmosHashLib
```
## Usage
```python
from CosmosHashLib import hashing
# if no pepper is set
# no attempt will be made to pepper the input
hashing.RandLen(73415123615248374531263482374652358413461324623874189024189236192837189237273452631741)
hashing.Pepper('secret pepper')
# returns string with hash and salts
# in format salt1$hash$salt2
# '9629480548280199683952534504439555097095034673943361626777618263219601140700721613182$df85bca92a6b4b87abda9e621aa5e662113b4fcbb0c022963e43c3b43a230956$4797f1dbb71ac12b5d8985421ed5b743879e1aba11a2beeab9c39b47c96d94fe'
hash = hashing.SHA256.HashSaltPepper('hash a string')
# returns True
hashing.SHA256.VerifySaltPepper('hash a string', hash)
# returns False
hashing.SHA256.VerifySaltPepper('hash some strings', hash)
# Use hashing.SHA1 for SHA1 hashes
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl CosmosHashLib-0.0.9:
pip install CosmosHashLib-0.0.9.whl
نصب پکیج tar.gz CosmosHashLib-0.0.9:
pip install CosmosHashLib-0.0.9.tar.gz