Hacker News new | ask | show | jobs
by jmclnx 127 days ago
FWIW, you can generate your own random PW on any UN*X Type system, I think on MACs also:

For example:

tr -cd "[:alnum:]" < /dev/urandom | fold -w 20 | sed 10q

Change "alnum" to "print" to get other characters. This will generate 10 20 characters passwords.

4 comments

    shuf -i 1-10 -n1
    10

    shuf -n1 /usr/share/dict/usa 
    saltier

    # random 24 char
    base64 /dev/urandom | tr -d '/+' | dd bs=24 count=1 2>/dev/null;echo
    5seFtWG09vTUc0VCMb3BJ6Al

    # random letter
    base64 /dev/urandom | tr -d '/+' | sed s/[^[:alpha:]]//g | tr 'A-Z' 'a-z' | dd bs=1 count=1 2>/dev/null;echo
    x

    # bash
    echo $RANDOM
    21178
I would like to see the prompt they are using. I asked CLaude to generate a password and email to a new user and im quite sure he used /dev/urandom in some way. I would expect most llm to do that as long as they have cli access
I use "openssl rand" :

    openssl rand --base64 18
also:

gpg --gen-random --armor 1 20

or:

pwgen