hashish /

Filename Size Date modified Message
docs
61 B
16 B
19 B
3.3 KB
631 B
100 B
766 B
1.9 KB

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

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.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.