diff --git a/.bashrc b/.bashrc index 3088dfe..b5c2357 100755 --- a/.bashrc +++ b/.bashrc @@ -440,9 +440,12 @@ function lastfile () { } function newpasswd() { - date +%s | sha256sum | base64 | head -c 32 ; echo - - # autre + # from llama 3.3 70B + tr -dc 'a-hj-km-no-pqrs-tuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ023456789' < /dev/urandom | fold -w 10 | head -n 1 + + # base64: pas une bonne idee car limite le nombre de caracteres + # date +%s | sha256sum | base64 | head -c 32 ; echo + # hexadecimal=base16: pire # openssl rand -hex 32 }