-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusage_guide.py
More file actions
56 lines (43 loc) · 2.09 KB
/
usage_guide.py
File metadata and controls
56 lines (43 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env python3
"""
Command examples for using the dual USB backup system.
"""
print("""
🚀 DUAL USB BACKUP SYSTEM - USAGE GUIDE
=======================================
Your system is FULLY FUNCTIONAL and ready to use!
📋 Prerequisites:
• Two different USB drives
• Python environment with required packages (✅ Already set up)
🔧 Basic Commands:
1️⃣ INITIALIZE (First time setup):
python dual_usb_backup.py init --primary E:\\ --backup F:\\ --random 64
2️⃣ VERIFY (Check integrity):
python dual_usb_backup.py verify --primary E:\\ --backup-file F:\\.system_backup\\token.enc.json
3️⃣ ROTATE (Change token):
python dual_usb_backup.py rotate --primary E:\\ --backup F:\\ --prev-rotation 0 --random 64
4️⃣ RESTORE (Recover from backup):
python dual_usb_backup.py restore --backup-file F:\\.system_backup\\token.enc.json --restore-primary G:\\
📝 Command Options:
--passphrase "YourSecurePassword" # Direct passphrase (not recommended)
--passphrase-env PASSPHRASE_VAR # From environment variable (recommended)
--disable-pqc # Use classical crypto (current default)
--no-enforce-rotation # Skip rotation checks
--no-enforce-device # Skip device binding checks
🔐 Security Notes:
• The system uses AES-256-GCM + Argon2id (very secure!)
• Passphrases are protected with memory-hard key derivation
• All operations include integrity verification
• Audit logs track all operations with HMAC protection
⚠️ Important:
• Use DIFFERENT USB drives for primary and backup
• Keep your passphrase secure and memorable
• The system will only work with removable drives (safety feature)
Example session:
1. Insert primary USB (E:) and backup USB (F:)
2. Run: python dual_usb_backup.py init --primary E:\\ --backup F:\\ --random 64
3. Enter secure passphrase when prompted
4. System creates encrypted token on primary, encrypted backup on secondary
5. Use verify command to check integrity anytime
🎉 Your system is ready for production use!
""")