diff --git a/.bashrc b/.bashrc index b5c2357..2b5a54b 100755 --- a/.bashrc +++ b/.bashrc @@ -440,13 +440,21 @@ function lastfile () { } function newpasswd() { - # 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 + # from perflexity.ai (juin 2025) + # version 32 cara parmi alnum + symboles [entropie = 6,25bits] + # cat /dev/urandom | tr -dc 'A-Za-z0-9!@#$%^&*()_+=' | fold -w 32 | head -n 1 + + # version 32 cara parmi alnum + symboles sans 1 i I l [entropie = 6,17bits] + cat /dev/urandom | tr -dc 'A-HJ-KM-Za-hj-km-z0234567890!@#$%^&*()_+=' | fold -w 32 | head -n 1 + + # + # version 32 carac parmi base64 [entropie = 6bits] + # (suppression du/des = final) + # openssl rand -base64 32 | tr -d = + + # version 32 carac parmi les lettres et les chiffres (62 carac) [entropie = 5,95bits] + # cat /dev/urandom | tr -cd '[:alnum:]' | fold -w32 | head -1 + } ## llm https://rez0.blog/hacking/2023/09/18/vim-llm-hacks.html