Skip to main content

A simple library for securely managing tokens and secrets.

Project description

🛡️ O₂Security - Secure Secrets Management for Python

PyPI Python License GitHub Stars

A simple and secure library for managing tokens, API keys, and other secrets in your Python projects. Stop hardcoding secrets and start managing them securely with a local, encrypted vault and a user-friendly web dashboard.

Dashboard Preview

✨ Key Features

Feature Description
🔒 Military-Grade Encryption AES-256-GCM encryption for all secrets at rest
🏠 Local-First Storage Secrets stored in ~/.o2security (never in git)
🖥️ Web Dashboard Beautiful interface for managing secrets
🐍 Python API Simple integration with any Python project
⌨️ CLI Access Manage secrets from terminal with o2tokman
🔄 Automatic Key Rotation Built-in security best practices

⚡ Quick Install

pip install o2security

🚀 Quick Start

1. Launch the Dashboard

o2tokman

Access at: http://127.0.0.1:5001

2. Create Project & Add Secrets

  1. Create new project (e.g. my-discord-bot)
  2. Add secrets (e.g. DISCORD_TOKEN)

3. Use in Your Code

from o2security import tokman

# Load secrets
tokman.select_project("my-discord-bot")
bot_token = tokman.get("DISCORD_TOKEN")

# Use in your app
import discord
client = discord.Client()
client.run(bot_token)

🔐 Security Architecture

graph TD
    A[Master Key] -->|Encrypts| B[Project Vaults]
    B --> C[Secret1]
    B --> D[Secret2]
    B --> E[Secret3]
    style A fill:#4d94db,stroke:#333
    style B fill:#88d8b0,stroke:#333
  • Master Key: 256-bit key stored at ~/.o2security/master.key
  • Project Vaults: Individual encrypted JSON files
  • Zero Trust: Secrets never leave your local machine

📚 Full Documentation

For advanced usage and API reference, visit:
project.donutmsv.ir

💖 Support the Project

If you find O₂Security useful, please consider:

Star on GitHub

📜 License

Apache-2.0 license - See LICENSE for details.


Built with ❤️ and 🐍 by Unknownmsv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

o2security-0.2.0.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

o2security-0.2.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

Details for the file o2security-0.2.0.tar.gz.

File metadata

  • Download URL: o2security-0.2.0.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for o2security-0.2.0.tar.gz
Algorithm Hash digest
SHA256 26cdbd8cf8e012d106eabd83e6f2cf455b439b242e994f8da9c32bb925d9ab41
MD5 4923292cbc88167f87881d1571c321e1
BLAKE2b-256 f697ebcd10b13d50221b7cc8818e7d84adf8aad0eaf957c03439c44755614182

See more details on using hashes here.

File details

Details for the file o2security-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: o2security-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for o2security-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16eb845f0235cadd26cf77f76fe1f14d8c19dbb5eeabf86dd530773d0fb57bf1
MD5 bac0580fbe343663c35dc9946399cd60
BLAKE2b-256 c2420bd0c92ba842b7bb5306407d2177f164640be0c6bfdda0a5679f9780cd48

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page