smartpasslib v4.0.0

Cryptographic password generation and management without storage

Cross-platform deterministic passwords on Python, C#, Go, Kotlin, JavaScript. Decentralized by design.

Python Cryptography Zero-Storage Decentralized Cross-Platform PyPI

Smart Passwords Library: Cryptographic password generation and management without storage. Generate passwords from secrets, verify knowledge without exposure, manage metadata securely.

Now with Cross-Platform Determinism: Same secret + same parameters = identical password on C#, Python, Go, Kotlin, JavaScript and any language with SHA-256.

Decentralized by Design: Unlike traditional password managers that store encrypted vaults on central servers, smartpasslib stores nothing. Your secrets never leave your device. Passwords are regenerated on-demand — no cloud, no database, no trust required.

  • Zero-Storage Security — no passwords or secret phrases are ever stored or transmitted
  • Decentralized Architecture — no central servers, no cloud dependency
  • Cross-Platform Deterministic Generation — identical secret + parameters = identical password on any language (SHA-256 based)
  • Metadata Only — store only verification metadata (public keys, descriptions, lengths)
  • On-Demand Regeneration — passwords are recalculated when needed
  • Cryptographically Secure — uses secrets module and SHA-256

  • Decentralized & Serverless — no central database, no cloud lock-in
  • No Password Database — eliminates the need for password storage
  • Cross-Platform Determinism — same results on C#, Python, Go, Kotlin, JavaScript
  • Public Key Verification — verify secrets without exposing them
  • Multiple Generator Types — Smart, strong, base, and code generators
  • Store Only Public Metadata — private keys and secrets are NEVER persisted
  • Full Test Coverage — 100% tested for reliability and security

  • Proof of Knowledge — verify you know a secret without storing or transmitting it
  • Decentralized Trust — no third party needed
  • Deterministic Security — same input = same output, always reproducible
  • Dynamic Iteration Counts — private key: 15-30, public key: 45-60
  • Zero Storage of Secrets — secret phrases exist only in your memory
  • No Recovery Backdoors — lost secret = permanently lost passwords

Validation Rules: Secret phrase: min 12 chars · Password length: 12-100 chars · Code: 4-100 chars

Why SHA-256 instead of SHA3-512:

  • Cross-platform standard — available in every programming language by default
  • NIST certified — FIPS 180-4 compliant
  • 256-bit security — quantum-resistant (128-bit effective with Grover's algorithm)
  • Performance — faster on 32-bit and 64-bit systems

Key Derivation

Key TypeIterationsPurpose
Private Key15-30 (dynamic)Password generation (never stored)
Public Key45-60 (dynamic)Verification (stored locally)

Character Set (Google-compatible):

!@#$%^&*()_+-=[]{};:,.<>?/ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz

pip install smartpasslib

Generate Password

from smartpasslib import SmartPasswordMaster

secret = "my_strong_secret_key"
password = SmartPasswordMaster.generate_smart_password(
    secret=secret,
    length=12
)
print(f"Your password: {password}")

Verification Without Storage

public_key = SmartPasswordMaster.generate_public_key(secret)
is_valid = SmartPasswordMaster.check_public_key(secret, public_key)
print(is_valid)  # True

SmartPasswordMaster — Main Interface

from smartpasslib import SmartPasswordMaster

base_password = SmartPasswordMaster.generate_base_password(length=12)
strong_password = SmartPasswordMaster.generate_strong_password(length=14)
smart_password = SmartPasswordMaster.generate_smart_password("my_strong_secret_key", 12)
auth_code = SmartPasswordMaster.generate_code(8)

SmartPasswordManager — Metadata Storage

from smartpasslib import SmartPasswordManager, SmartPassword, SmartPasswordMaster

manager = SmartPasswordManager()
public_key = SmartPasswordMaster.generate_public_key("MyStrongSecretPhrase2026!")
smart_pass = SmartPassword(
    public_key=public_key,
    description="GitHub account",
    length=18
)
manager.add_smart_password(smart_pass)

Same deterministic algorithm is available in multiple languages:

Core Libraries:

PlatformPath
Linux~/.config/smart_password_manager/passwords.json
WindowsC:\Users\Username\.config\smart_password_manager\passwords.json

100% test coverage — All components thoroughly tested