🎄 Especial Navidad
Organiza tu amigo invisible.
Nadie puede hacer trampa.
Escribe los nombres, hacemos el sorteo y creamos un enlace protonURL por participante. Cada uno abre el suyo una sola vez, descubre a quién le toca regalar… y el mensaje se autodestruye.
Sorteo gratis, sin registro
Cómo funciona
-
1
Escribe los nombres
Añade a los participantes y, si hace falta, a las personas que no deben tocarse entre sí (las parejas, por ejemplo).
-
2
Hacemos el sorteo
Colocamos a todos en un círculo de regalos aleatorio y creamos un enlace protonURL cifrado para cada participante.
-
3
Envía los enlaces
Cada uno recibe su enlace por SMS, WhatsApp o correo. En cuanto lo lee, el mensaje se destruye.
🕵️ ¿Y si alguien intenta mirar?
Un enlace protonURL se abre una sola vez. Si el organizador (o cualquier otra persona) abre el enlace de otro, su verdadero destinatario se encontrará con un enlace ya abierto: la trampa se descubre al instante. Basta con repetir el sorteo.
El problema del amigo invisible de toda la vida
Los papelitos
Hay que reunir a todos en el mismo sitio, y siempre hay alguien a quien le toca su propio nombre.
El organizador lo sabe todo
Quien hace el sorteo conoce todas las parejas. Se acabó la sorpresa para él.
Las apps especializadas
Cuentas que crear, correos recopilados, publicidad… solo para sortear unos cuantos nombres.
🔒 Secreto de verdad, incluso para el organizador
-
🙅 Sin botón «revelarlo todo»
Las parejas nunca se muestran a nadie. El organizador solo ve enlaces, no los nombres sorteados.
-
🤖 Sin IA
Tus listas de nombres nunca se envían a un servicio de inteligencia artificial.
-
🚫 Sin cuenta
Sin registro, sin pedir correo, sin publicidad. Los enlaces no abiertos se eliminan al cabo de un mes.
«¡Lo acabo de usar para organizar un amigo invisible! Me sirvió para lo que quería y funcionó bien. Es secreto incluso para mí, y así es más bonito.»
🔍 Para los más desconfiados
¿Prefieres no confiarnos el sorteo?
Hazlo en tu propio ordenador. El script es corto y fácil de leer: el sorteo se hace en tu máquina, no en nuestros servidores. protonURL solo almacena después cada mensaje cifrado, como con cualquier otro enlace.
- Consigue tu clave API gratuita (20 llamadas al mes, sin tarjeta de crédito).
- Descarga el script y rellena tu clave, los participantes y el mensaje.
- Ejecuta
python3 secret-santa.py: obtendrás un enlace por participante.
#!/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()
Con la clave gratuita puedes hacer un sorteo de hasta 19 participantes (el script usa una llamada para comprobar tu cuota antes de empezar). Para un grupo más grande, el plan API Pro incluye 1000 llamadas al mes.