Bonjour Thierry,
La fonction a été renommée en "rsa_encrypted_data_str" et est maintenant directement dans le module setuphelpers Il faudrait que l'on mette à jour les exemples et documentations....
Hubert Touvet Tranquil IT
Le 23/04/2024 à 15:10, COOLS Thierry via WAPT a écrit :
Bonjour,
je me suis interressé au paquet laps by wapt qui contient cette fonction "encrypted_data_str()"
j'ai bien entendu mis :
from setuphelpers import * from waptcrypto import *
en import en début de paquet.
J'essaye ensuite d'écrire la donnée cryptée dans l'audit mais sans succès. J'ai le message "NameError: name 'encrypted_data_str' is not defined"
la commande complète que j'utilise est :
WAPT.write_audit_data_if_changed("laps", "local_admin_password", encrypted_data_str(randompassword, [WAPT.public_certs_dir]), max_count=3)
Une idée de pourquoi la commande n'est pas reconnue dans mon paquet ? merci !
*Thierry Cools*
*Administrateur réseaux et systèmes*
*Division des services d’information *
Rue de Stalle 67
1180 Uccle
WAPT mailing list WAPT@lists.wapt.fr http://lists.wapt.fr/listinfo/wapt