firebase-scrypt-python
Python implementation of Firebase's scrypt password hashing algorithm. Based on firebase/scrypt.
This is a fork of Jaakkol/firebase-scrypt-python to allow packaging for PyPI.
Installation
Install via pip
pip3 install firebase-scrypt
Usage
import firebase_scrypt
# Sample Password hash parameters from Firebase Console.
salt_separator = "Bw=="
signer_key = "jxspr8Ki0RYycVU8zykbdLGjFQ3McFUH0uiiTvC8pVMXAn210wjLNmdZJzxUECKbm0QsEmYUSDzZvpjeJ9WmXA=="
rounds= 8
mem_cost=14
# Exported user user accounts salt and password hash.
salt = "42xEC+ixf3L2lw=="
password_hash="lSrfV15cpx95/sZS2W9c9Kp6i/LVgQNDNC/qzrCnh1SAyZvqmZqAjTdn3aoItz+VHjoZilo78198JAdRuid5lQ=="
# User's plain text password
password = "user1password"
is_valid = firebase_scrypt.verify_password(
password=password,
known_hash=password_hash,
salt=salt,
salt_separator=salt_separator,
signer_key=signer_key,
rounds=rounds,
mem_cost=mem_cost
)
is_valid # True / False
Bugs, Feature Requests etc
TLDR: Please submit an issue on github.
In the case of bug reports, please help me help you by following best practices 1 2.
In the case of feature requests, please provide background to the problem you are trying to solve so to help find a solution that makes the most sense for the library as well as your usecase.
Development
The only development dependencies are bash and docker. All actions are run within docker for ease of use. See ./dev.sh help for commands. Typical commands are format, lint, test, repl, build.
Licence
This project is licenced under the MIT Licence - see LICENCE.
This project may include other open source licenced software - see NOTICE.
Authors
- Nicholas Hairs - www.nicholashairs.com
- Jaakko Laurila
Metadata
Release files for firebase-scrypt 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| firebase_scrypt-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for firebase_scrypt-0.1.0-py3-none-any.whl |
Release files / firebase_scrypt-0.1.0-py3-none-any.whl
| Download URL | firebase_scrypt-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0019f54e496db25829aae13bf178f5c40e47d7dadf39fc56cddfb511721e8ae
|
|
BLAKE2b-256 checksum How to use checksums |
7b17e6b4a0871e7067069575c062c1af6bca8ec04c8979a6c099e37c18fd86e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for firebase-scrypt 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.