Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hashish, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size hashish-0.1.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page