Caclulating QR-Code URLs for the Actimel/Pokémon lottery
Inhalt
Einfaches Python-Skript zur Berechnung der QR-Codes für das Acitmel Pokemon Gewinnspiel:
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 😉.