Yahoo here. How the hell did the hackers get the passwords in plain text? Were they seriously unencrypted?
I've gone to generating a unique password with a simple random number generator if the end site supports password recovery (in case Chrome's password memorizing system forgets it).
#!/bin/bash if [ $1 ] ; then a=$1 else a=16 fi dd if=/dev/urandom bs=1000 count=1 2>/dev/null | tr -d -c "[:alnum:]" | tr -d '`' | tr -d "'" | tr -d '"' | tr -d '\\' | head -c $a echo
I essentially use the following:
base64 </dev/urandom | head -c $COUNT | xargs -0 LANG=C tr -dc "[:print:]" < /dev/urandom | fold -w 32 | head -n 1There's also the benefit of fewer moving parts -- with a pipeline like that, I'd be worried about accidentally stripping out some of the randomness. I'm fairly confident that a simple invocation of `pwgen` will work.