def _inner(cls, tag, mesa): seleccion = None aes_key = mesa.get_aes_key() try: if ENCRIPTAR_TAG and aes_key is not None: tag = desencriptar(aes_key, tag) seleccion = func(cls, tag, mesa) except InvalidTag: pass return seleccion
def decode_aes_key(self, salt, pin, key_credencial): clave = derivar_clave(bytes(pin, "utf8"), salt) key_mesa = desencriptar(clave, key_credencial) self.set_aes_key(key_mesa)