A standalone object-oriented Python library for PIN-based file locking workflows.
Project description
Secure Vault Library
secure-vault-library is a standalone Python package for PIN-based locking workflows in secure file-management systems.
Why this exists
The package is designed to be reusable outside this project. It provides:
- PIN validation with configurable policy rules
- Secure PIN hashing using PBKDF2-HMAC-SHA256
- Lock creation and verification workflows
- Unlock validation workflows
- A small object-oriented API that can be used by web apps, CLIs, or desktop tools
Installation
pip install secure-vault-library
For local development:
pip install -e .
Quick example
from secure_vault_library import PinPolicy, SecureVaultLockService
policy = PinPolicy(min_length=4, max_length=8)
service = SecureVaultLockService(policy=policy)
validation = service.validate_pin("2468")
assert validation.valid
lock_payload = service.create_lock("2468", "2468")
assert lock_payload.is_locked
verified = service.verify_pin("2468", lock_payload.pin_hash)
assert verified.verified
Main classes
PinPolicyPinValidationResultLockPayloadPinVerificationResultSecureVaultLockService
Publishing
Build the package:
python -m build
Publish to PyPI:
python -m twine upload dist/*
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file secure_vault_library-0.1.0.tar.gz.
File metadata
- Download URL: secure_vault_library-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ec639f1903f781664c3883b62a65ecda2b51376e7fa07abbea3c7943cc0220
|
|
| MD5 |
e01dc9642fcd29d8cc03d0611c354f1e
|
|
| BLAKE2b-256 |
558c096d6536b3b79693b2566a67520fa1a86c8cfd79c17bfbfe00e7e6a149c4
|
File details
Details for the file secure_vault_library-0.1.0-py3-none-any.whl.
File metadata
- Download URL: secure_vault_library-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8ccb8c2bfe63342ed8754a20ba490704375f9fe4c28004c5b35735fa0f9365d
|
|
| MD5 |
5bd6149d84f1b4a058da0866a585a184
|
|
| BLAKE2b-256 |
286f2d9724f934b40507ddd73b1c1e4a289776e62ff40f3e67921b55a4ba226c
|