A Telegram bot that stores and generates TOTP codes (Google Authenticator compatible) with AES-256-GCM encryption.
- ➕ Add accounts via QR code image, otpauth:// URI, or manual entry
- 📋 List all accounts with live OTP codes and countdown timer
- 🗑 Delete accounts
- 🔒 All secrets encrypted with AES-256-GCM + PBKDF2-SHA256 (310k iterations)
- Each user's data is isolated by Telegram user ID
git clone https://github.com/YOUR_USERNAME/blockveil-auth-bot
cd blockveil-auth-bot- Open @BotFather on Telegram
- Send
/newbotand follow instructions - Copy the BOT_TOKEN
- Go to railway.app → New Project → Deploy from GitHub
- Select this repo
- Add environment variables:
| Variable | Value |
|---|---|
BOT_TOKEN |
Your BotFather token |
ENCRYPTION_KEY |
A strong random string (32+ chars) |
DB_PATH |
auth.db |
- Railway auto-detects
Procfileand deploys as a worker (no port needed)
pip install -r requirements.txt
cp .env.example .env
# Edit .env with your values
python bot.pyENCRYPTION_KEYis the master key — keep it secret and back it up- If you lose
ENCRYPTION_KEY, all stored secrets become unrecoverable - SQLite DB is stored on Railway's ephemeral volume — consider upgrading to Railway's persistent volume or PostgreSQL for production
python-telegram-bot21.xcryptography(AES-256-GCM, PBKDF2)pyzbar+Pillow(QR code scanning)- SQLite (storage)
- Railway (hosting)