A simple library for securely managing tokens and secrets.
Project description
🛡️ O₂Security - Secure Secrets Management for Python
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.
✨ 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
- Create new project (e.g.
my-discord-bot) - 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:
📜 License
Apache-2.0 license - See LICENSE for details.
Built with ❤️ and 🐍 by Unknownmsv
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26cdbd8cf8e012d106eabd83e6f2cf455b439b242e994f8da9c32bb925d9ab41
|
|
| MD5 |
4923292cbc88167f87881d1571c321e1
|
|
| BLAKE2b-256 |
f697ebcd10b13d50221b7cc8818e7d84adf8aad0eaf957c03439c44755614182
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16eb845f0235cadd26cf77f76fe1f14d8c19dbb5eeabf86dd530773d0fb57bf1
|
|
| MD5 |
bac0580fbe343663c35dc9946399cd60
|
|
| BLAKE2b-256 |
c2420bd0c92ba842b7bb5306407d2177f164640be0c6bfdda0a5679f9780cd48
|