Adduser utility to generate "random" passwds ?

Ivan Voras ivoras at fer.hr
Mon Jan 8 19:14:21 UTC 2007


Ivan Voras wrote:
> Frank Bonnet wrote:
> 
>> I want to generate new "strong" password for existing users.
> 
> Here's an idea:
> 
> $ head -c 64 /dev/random | md5 | head -c 10

... or, following the upthread discussion, a preferable alternative:

> openssl rand -base64 6

This will generate a strong password of 8 characters[*] with 6 bits of
entropy each (48 bits total), which is as strong as it gets.




[*] literally: 6 random bytes encoded with base64 to 8 ASCII characters

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070108/9b4b7dfe/signature.pgp


More information about the freebsd-questions mailing list