🎄 Especial Natal
Organize seu amigo secreto.
Ninguém consegue trapacear.
Digite os nomes, nós fazemos o sorteio e criamos um link protonURL por participante. Cada um abre o seu uma única vez, descobre quem vai presentear… e a mensagem se autodestrói.
Sorteio gratuito, sem cadastro
Como funciona
-
1
Digite os nomes
Adicione os participantes e, se necessário, as pessoas que não podem tirar uma à outra (os casais, por exemplo).
-
2
Nós fazemos o sorteio
Todos são colocados em um círculo de presentes aleatório e, em seguida, é criado um link protonURL criptografado para cada participante.
-
3
Envie os links
Cada um recebe seu link por SMS, WhatsApp ou e-mail. Depois de lida, a mensagem é destruída.
🕵️ E se alguém tentar espiar?
Um link protonURL abre uma única vez. Se o organizador (ou qualquer outra pessoa) abrir o link de outro, o verdadeiro destinatário vai encontrar um link já aberto: a trapaça é percebida na hora. Basta refazer o sorteio.
O problema do amigo secreto tradicional
Os papeizinhos
É preciso reunir todo mundo no mesmo lugar, e alguém sempre acaba tirando o próprio nome.
O organizador sabe tudo
Quem faz o sorteio conhece todos os pares. Para ele, a surpresa acabou.
Os apps dedicados
Contas para criar, e-mails coletados, anúncios… só para sortear meia dúzia de nomes.
🔒 Secreto de verdade, até para o organizador
-
🙅 Sem botão “revelar tudo”
Os pares nunca são mostrados a ninguém. O organizador só vê links, não os nomes sorteados.
-
🤖 Sem IA
Suas listas de nomes nunca são enviadas para um serviço de inteligência artificial.
-
🚫 Sem conta
Sem cadastro, sem e-mail obrigatório, sem anúncios. Os links não abertos são excluídos após um mês.
“Acabei de usar para organizar um amigo secreto! Atendeu ao que eu queria e funcionou bem. É segredo até para mim, o que é muito mais legal.”
🔍 Para os mais desconfiados
Prefere não confiar o sorteio a nós?
Faça no seu próprio computador. O script é curto e legível: o sorteio acontece na sua máquina, não nos nossos servidores. O protonURL apenas armazena depois cada mensagem criptografada, como para qualquer outro link.
- Peça sua chave API gratuita (20 chamadas por mês, sem cartão de crédito).
- Baixe o script e preencha sua chave, os participantes e a mensagem.
- Execute
python3 secret-santa.py: você obtém um link 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()
Com a chave gratuita, você pode fazer um sorteio com até 19 participantes (o script usa uma chamada para verificar sua cota antes de começar). Para um grupo maior, o plano API Pro inclui 1.000 chamadas por mês.