https://github.com/tomfaulkner/sec-password
sec-password
https://github.com/tomfaulkner/sec-password
Last synced: 3 months ago
JSON representation
sec-password
- Host: GitHub
- URL: https://github.com/tomfaulkner/sec-password
- Owner: TomFaulkner
- Created: 2020-12-19T19:41:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-19T19:46:01.000Z (over 4 years ago)
- Last Synced: 2025-01-01T06:27:15.601Z (5 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Secure Password Library using only Python standard lib
======================================================A small Python library that aids in securely storing and authenticating passwords.
Based on best practice suggestions from:
https://crackstation.net/hashing-security.htm?=rdUsage
----->>> hashed = hash_password(
... password='secure password',
... key='string from keyfile',
... iterations=500
... )
>>> verify_password(
... stored_password=hashed,
... provided_password='secure password',
... key='string from keyfile',
... iterations=500
... )
TrueNote that iterations is a multiplied by 1,000. 500 is probably a reasonable
default.Keyed Hashes
------------If ``key`` is used it should be a string read from a file or outside source that
is not stored in the database or hardcoded into the program.Keyed Hashes are not required. By default an empty string is used.
See https://crackstation.net/hashing-security.htm?=rd for Keyed Hashes
Installation
------------poetry add sec-password
or
pip install sec-password