Dans les premières versions de bonobox, les caractères spéciaux sont autorisés dans le mot de passe.
Caractères comme @ ou #
Je voudrais les sauver.
J'ai vu qu'il ya une expression régulière, mais je ne peux pas changer, et ni bien comment.
La fonction, qui est dans le fichier functions.sh, est la suivante:
function FONCPASS ()
{
read -r REPPWD
if [ "$REPPWD" = "" ]; then
AUTOPWD=$(tr -dc "1-9a-nA-Np-zP-Z" < /dev/urandom | head -c 8)
echo "" ; set "118" "120" ; FONCTXT "$1" "$2" ; echo -n -e "${CGREEN}$TXT1${CEND} ${CYELLOW}$AUTOPWD${CEND} ${CGREEN}$TXT2 ${CEND}"
read -r REPONSEPWD
if FONCNO "$REPONSEPWD"; then
echo
else
USERPWD="$AUTOPWD"
# shellcheck disable=SC2104
break
fi
else
if [[ "$REPPWD" =~ ^[a-zA-Z0-9]{6,}$ ]]; then
# shellcheck disable=SC2034
USERPWD="$REPPWD"
# shellcheck disable=SC2104
break
else
echo "" ; set "122" ; FONCTXT "$1" ; echo -e "${CRED}$TXT1${CEND}" ; echo ""
fi
fi
}
Quelqu'un pourrait me montrer comment permettre l'utilisation de caractères spéciaux dans le mot de passe?
Merci.
Cordialement
P.D: Easter egg j'ai trouvé l'écriture du titre du fil Je riais jolie xD