Password Hashing Library
Project description
Hashish
=======
A simple mixin that provides password hashing functionality. It uses a
configurable salt count to set a field. It is designed to be easy to use
in most instances
Example Usage with SqlAlchemy
-----------------------------
:::python
class Account(Base,HashishMixin):
__PASSWORD_FIELD__ = "password_hash" # Defaults to "hash"
__SALT_COUNT__ = 4 # Defaults to 2
password_hash = Column(String)
test_account = Account()
test_account.password = "SuperSecretPasswordYo!"
test_account.validate("SuperSecretPasswordYo!") # True if the hashes match using the same salt.
Initial Release
=======
A simple mixin that provides password hashing functionality. It uses a
configurable salt count to set a field. It is designed to be easy to use
in most instances
Example Usage with SqlAlchemy
-----------------------------
:::python
class Account(Base,HashishMixin):
__PASSWORD_FIELD__ = "password_hash" # Defaults to "hash"
__SALT_COUNT__ = 4 # Defaults to 2
password_hash = Column(String)
test_account = Account()
test_account.password = "SuperSecretPasswordYo!"
test_account.validate("SuperSecretPasswordYo!") # True if the hashes match using the same salt.
Initial Release
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
hashish-0.1.1.tar.gz
(2.2 kB
view details)
File details
Details for the file hashish-0.1.1.tar.gz
.
File metadata
- Download URL: hashish-0.1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 542363cc0d62d1363aa93f93a69670d9c3c60c508e4fbfda57d712db8740e1a4 |
|
MD5 | 867b258d152c527aeff8011ac69476dd |
|
BLAKE2b-256 | 8a8af86337e6ae5c75b5f37c10de757062a687030b9b08269faad15ace75c96c |