def generate_aes_key(token, secret):
 return hashlib.sha256((token + secret)).digest()

def generate_aes_key ( token , secret ) : return hashlib . sha256 ( ( token + secret ) ) . digest ( )
generates and returns a 256 bit aes key .