def sign(cookie): """Signe le cookie.""" h = blake2b(digest_size=AUTH_SIZE, key=SECRET_KEY) h.update(cookie.output().encode('utf-8')) cookie['signature'] = h.hexdigest()