Caclulating QR-Code URLs for the Actimel/Pokémon lottery
Simple Python code for calculating the QR-Codes for the Actimel/Pokémon lottery:
from hashlib import sha256
names = ['dragonite', 'fidough', 'fuecoco', 'gyarados', 'munchlax', 'bellibolt', 'greavard', 'charmeleon',
'charmander', 'bulbasaur', 'charizard', 'blastoise', 'ivysaur', 'pawmi', 'pichu', 'pikachu', 'quaxly',
'smoliv', 'raichu', 'sprigatito', 'squirtle', 'venusaur', 'wartortle']
for name in names:
hsh = sha256(name.encode('utf-8')).hexdigest()
print(f'{name: <{10}} | https://pokemon.actimel.de/welcome?scan={hsh}')
This results in the following:
Have fun 😉