proton URL

protonURL

सुरक्षित और गोपनीय साझाकरण

🎄 त्योहार विशेष

अपना सीक्रेट सांता आयोजित करें।
कोई झाँक नहीं सकता।

नाम डालें, हम ड्रॉ करते हैं और हर प्रतिभागी के लिए एक protonURL लिंक बनाते हैं। हर व्यक्ति अपना लिंक एक ही बार खोलता है, जानता है कि उसे किसके लिए उपहार लेना है… और संदेश अपने आप नष्ट हो जाता है।

मुफ़्त नाम ड्रॉ, बिना साइन-अप

हर लाइन में एक नाम, 3 से 30 लोग।
हर लाइन में एक जोड़ी, कॉमा से अलग। उदाहरण: Alice, Bob
बजट, तारीख, जगह… यह हर लिंक में जोड़ा जाएगा।

🔒 ड्रॉ और एन्क्रिप्शन आपके ब्राउज़र में ही होते हैं: हमें न नाम मिलते हैं, न जोड़ियाँ — सिर्फ़ एन्क्रिप्टेड संदेश, जिन्हें हम पढ़ नहीं सकते।

यह कैसे काम करता है

  1. 1

    नाम डालें

    प्रतिभागियों को जोड़ें और ज़रूरत हो तो उन लोगों को भी जो एक-दूसरे को नहीं निकाल सकते (जैसे जोड़े)।

  2. 2

    हम ड्रॉ करते हैं

    सबको एक रैंडम उपहार-चक्र में रखा जाता है, फिर हर प्रतिभागी के लिए एक एन्क्रिप्टेड protonURL लिंक बनाया जाता है।

  3. 3

    लिंक भेजें

    हर किसी को अपना लिंक SMS, WhatsApp या ईमेल से मिलता है। पढ़ते ही संदेश नष्ट हो जाता है।

🕵️ अगर कोई झाँकने की कोशिश करे तो?

protonURL लिंक सिर्फ़ एक बार खुलता है। अगर आयोजक (या कोई और) किसी दूसरे का लिंक खोल ले, तो असली प्राप्तकर्ता को पहले से खुला लिंक मिलेगा: धोखा तुरंत पकड़ में आ जाता है। बस नया ड्रॉ कर लें।

पारंपरिक सीक्रेट सांता की परेशानी

📝

कागज़ की पर्चियाँ

सबको एक ही जगह इकट्ठा होना पड़ता है, और कोई न कोई अपना ही नाम निकाल लेता है।

🙈

आयोजक सब जानता है

जो ड्रॉ करता है, वह हर जोड़ी देख लेता है। उसके लिए कोई सरप्राइज़ नहीं बचता।

📧

खास ऐप्स

अकाउंट बनाना, ईमेल देना, विज्ञापन… बस कुछ नाम निकालने के लिए।

🔒 सचमुच गुप्त, आयोजक से भी

  • 🙅 कोई "सब दिखाएँ" बटन नहीं

    जोड़ियाँ किसी को भी नहीं दिखाई जातीं। आयोजक को सिर्फ़ लिंक दिखते हैं, निकाले गए नाम नहीं।

  • 🤖 कोई AI नहीं

    आपकी नामों की सूची कभी किसी आर्टिफ़िशियल इंटेलिजेंस सेवा को नहीं भेजी जाती।

  • 🚫 कोई अकाउंट नहीं

    न साइन-अप, न ईमेल, न विज्ञापन। न खोले गए लिंक एक महीने बाद हटा दिए जाते हैं।

“मैंने अभी-अभी इसका इस्तेमाल एक सीक्रेट सांता आयोजित करने के लिए किया! यह वही था जो मुझे चाहिए था और इसने अच्छे से काम किया। यह मुझसे भी गुप्त है, जो और भी अच्छा है।”
— Mat, हमारे API के शुरुआती उपयोगकर्ताओं में से एक

🔍 शंकालु लोगों के लिए

ड्रॉ के लिए हम पर भरोसा नहीं करना चाहते?

इसे अपने कंप्यूटर पर चलाएँ। स्क्रिप्ट छोटी और पढ़ने में आसान है: ड्रॉ आपकी मशीन पर होता है, हमारे सर्वर पर नहीं। इसके बाद protonURL किसी भी दूसरे लिंक की तरह सिर्फ़ हर एन्क्रिप्टेड संदेश को स्टोर करता है।

  1. अपनी मुफ़्त API कुंजी पाएँ (हर महीने 20 कॉल, क्रेडिट कार्ड की ज़रूरत नहीं)।
  2. स्क्रिप्ट डाउनलोड करें और अपनी कुंजी, प्रतिभागी और संदेश भरें।
  3. python3 secret-santa.py चलाएँ: हर प्रतिभागी के लिए एक लिंक मिलेगा।
#!/usr/bin/env python3
"""
Secret Santa with protonURL — https://protonurl.com/secret-santa.html

Draws names and creates one self-destructing link per participant.
Nobody, not even the organiser, knows who got whom: each person opens
their own link once, and the message is destroyed right after.

Requirements: Python 3.8+, no extra package.
Usage: edit the settings below, then run `python3 secret-santa.py`
"""

import json
import random
import sys
import urllib.error
import urllib.request

# ── Settings ────────────────────────────────────────────────────────────────

API_KEY = "YOUR_API_KEY"  # Free key (20 calls/month): https://protonurl.com/free-trial.html

PARTICIPANTS = ["Alice", "Bob", "Charlie", "Diana", "Eve"]

# Optional: people who must not draw each other (couples, roommates…)
EXCLUSIONS = [
    ("Alice", "Bob"),
]

MESSAGE = (
    "🎅 Hi {giver}!\n\n"
    "You are {receiver}'s Secret Santa! 🎁\n"
    "You're the one buying them a gift.\n\n"
    "Keep it secret 🤫 This message has now self-destructed: "
    "write the name down or take a screenshot, you won't be able to read it again.\n\n"
    "🎄 Run your own Secret Santa: https://protonurl.com/secret-santa.html"
)

DURATION_HOURS = 744  # Unopened links expire after 1 month. Allowed: 1, 72, 168, 744, 4464, 8760

# ── Script ──────────────────────────────────────────────────────────────────

API_URL = "https://api.protonurl.com"
ALLOWED_DURATIONS = (1, 72, 168, 744, 4464, 8760)


def api_call(method, path, payload=None):
    request = urllib.request.Request(
        API_URL + path,
        data=json.dumps(payload).encode() if payload is not None else None,
        method=method,
        headers={
            "Authorization": "Bearer " + API_KEY,
            "Content-Type": "application/json",
        },
    )
    try:
        with urllib.request.urlopen(request, timeout=30) as response:
            return json.load(response)
    except urllib.error.HTTPError as error:
        sys.exit(f"API error {error.code}: {error.read().decode(errors='replace')}")


def draw(people, exclusions, attempts=10_000):
    """Shuffle everyone into a single gift circle, so nobody draws themselves."""
    rng = random.SystemRandom()
    forbidden = {frozenset(pair) for pair in exclusions}
    for _ in range(attempts):
        circle = people[:]
        rng.shuffle(circle)
        pairs = [(circle[i], circle[(i + 1) % len(circle)]) for i in range(len(circle))]
        if not any(frozenset(pair) in forbidden for pair in pairs):
            return pairs
    sys.exit("No valid draw found: there are too many exclusions.")


def main():
    if API_KEY == "YOUR_API_KEY":
        sys.exit("Set your API key first: https://protonurl.com/free-trial.html")
    if len(PARTICIPANTS) < 3:
        sys.exit("You need at least 3 participants.")
    if len(set(PARTICIPANTS)) != len(PARTICIPANTS):
        sys.exit("Each participant name must be unique.")
    if type(DURATION_HOURS) is not int or DURATION_HOURS not in ALLOWED_DURATIONS:
        sys.exit(f"DURATION_HOURS must be one of {ALLOWED_DURATIONS}.")

    # Check the quota first, so the draw never stops halfway (this check uses 1 call)
    remaining = api_call("GET", "/quota").get("remaining")
    if remaining is not None and remaining < len(PARTICIPANTS):
        sys.exit(f"Only {remaining} API calls left this month, "
                 f"{len(PARTICIPANTS)} needed: https://protonurl.com/pricing.html")

    pairs = draw(PARTICIPANTS, EXCLUSIONS)

    print("Send each person their own link (and only theirs!):\n")
    for giver, receiver in sorted(pairs):
        link = api_call("POST", "/create", {
            "text": MESSAGE.format(giver=giver, receiver=receiver),
            "duration": DURATION_HOURS,
        })["url"]
        print(f"  {giver:<20} {link}")

    print("\nEach link works only once. If someone says theirs was already opened,")
    print("somebody peeked: just run the script again for a fresh draw.")


if __name__ == "__main__":
    main()

मुफ़्त कुंजी से आप अधिकतम 19 प्रतिभागियों का ड्रॉ कर सकते हैं (शुरू करने से पहले स्क्रिप्ट आपका कोटा जाँचने के लिए एक कॉल इस्तेमाल करती है)। बड़े समूह के लिए, API Pro प्लान में हर महीने 1,000 कॉल शामिल हैं।