Sekuvo
हिन्दी

लिफ़ाफ़ा → QR

यह पेज पहले से एन्क्रिप्टेड Sekuvo लिफ़ाफ़े को ऐसे QR फ़्रेम में बदलता है जिन्हें आपका फ़ोन स्कैन कर सके। यह कोई एन्क्रिप्शन नहीं करता और कभी कोई रहस्य नहीं माँगता: लिफ़ाफ़ा आप अपनी ही मशीन पर बनाते हैं, और यहाँ केवल एन्क्रिप्टेड टेक्स्ट चिपकाया जाता है।

सबसे सतर्क रास्ता अब भी डाउनलोड किया हुआ aktar.html है, जिसे अपनी ही डिस्क से खोला जाए। यह पेज उस स्थिति के लिए है जब आप अपने टर्मिनल में एन्क्रिप्ट करते हैं और आपको केवल QR प्रदर्शन चाहिए।

1 · लिफ़ाफ़ा अपनी ही मशीन पर बनाएँ

नीचे दी स्क्रिप्ट ठीक वही लिफ़ाफ़ा बनाती है जिसे ऐप खोलता है (PBKDF2-HMAC-SHA256 · 310,000 राउंड + AES-256-GCM)। इसे zarf-uret.py नाम से सहेजें और चलाने से पहले पढ़ें — यह लगभग तीस पंक्तियाँ है। पासवर्ड गढ़ने के बजाय जनरेट करें; पहला कमांड यही करता है।

# macOS / Linux
# generate a password (letters+digits, ~119 bits):
python3 -c "import secrets,string; print(''.join(secrets.choice(string.ascii_letters+string.digits) for _ in range(20)))"

pip3 install cryptography
python3 zarf-uret.py "Server SSH" > zarf.json   # paste the secret, then Ctrl-D
pbcopy < zarf.json                              # macOS; Linux: xclip -sel clip < zarf.json
# Windows (PowerShell)
# generate a password (letters+digits, ~119 bits):
python -c "import secrets,string; print(''.join(secrets.choice(string.ascii_letters+string.digits) for _ in range(20)))"

pip install cryptography
python zarf-uret.py "Server SSH" > zarf.json    # paste the secret, then Ctrl-Z + Enter
Get-Content zarf.json | Set-Clipboard
#!/usr/bin/env python3
# zarf-uret.py - reads the secret from stdin, writes a Sekuvo envelope to stdout.
# Usage: python3 zarf-uret.py "Title" > zarf.json   (paste the secret, then Ctrl-D)
# Requires: pip install cryptography
import sys, os, json, time, base64, hashlib, getpass
from cryptography.hazmat.primitives.ciphers.aead import AESGCM

title = sys.argv[1] if len(sys.argv) > 1 else "Transfer"
secret = sys.stdin.read()
# The app refuses entries above 256 KB; say so here instead of after the scan.
assert len(secret.encode()) <= 256 * 1024, "secret is over 256 KB, the app will not import it"
password = getpass.getpass("Envelope password (ASCII, generated): ")
assert password.isascii() and len(password) >= 8, "ASCII and at least 8 characters"

now = int(time.time() * 1000)
payload = json.dumps({"entries": [{
    "type": "NOTE", "title": title,
    "createdAt": now, "updatedAt": now, "quick": False,
    "data": {"notes": secret},
}]}, ensure_ascii=False)

salt = os.urandom(16)
key = hashlib.pbkdf2_hmac("sha256", password.encode(), salt, 310_000, 32)
iv = os.urandom(12)
blob = iv + AESGCM(key).encrypt(iv, payload.encode(), None)
print(json.dumps({
    "app": "vault", "version": 1,
    "kdf": {"algo": "PBKDF2WithHmacSHA256", "iterations": 310_000,
            "salt": base64.b64encode(salt).decode()},
    "cipher": "AES-256-GCM",
    "data": base64.b64encode(blob).decode(),
}))

रहस्य को कमांड लाइन पर टाइप करने के बजाय स्क्रिप्ट के इनपुट में चिपकाएँ — इस तरह वह कभी आपके शेल इतिहास में नहीं जाता।

2 · लिफ़ाफ़ा चिपकाएँ

3 · फ़ोन पर

Sekuvo → + → QR से आयात → फ़्रेम स्कैन करें → वही पासवर्ड डालें → मौजूदा में जोड़ें।

← sekuvo.com पर वापस