From 928d85fa02e0abe940cb16ddf2ae6a82ad86deed Mon Sep 17 00:00:00 2001 From: masterzu Date: Tue, 18 Mar 2025 12:14:06 +0100 Subject: [PATCH] FIXME: newpasswd --- .bashrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 }