|
From: Andrzej O. <an...@ma...> - 2011-02-22 14:04:05
|
Stefan Engel wrote:
> If it is ok, that you generate passwords, which are not easy to
> remember, you could do something like
>
> < /dev/urandom tr -dc _A-Za-z0-9 | head -c15
>
> which generates a password of 15 chars length.
Thanks, Stefan
I used passwdgen with option -p (pronounced). Now I did it in this manner:
> #!/usr/bin/awk -f
> BEGIN{
> c="bcdfghjklmnpqrstvwxzBCDFGHJKLMNPQRSTVWXZ"
> v="aeiouyAEIOUY"
> s="0123456789!@$%-=/+"
> srand()
> for (i=1;i<=1;i++)
> {
> code=""
> for (j=1;j<=8;j++)
> {
> if(j==2||j==4||j==6)code = code""substr(v,int(rand()*length(v))+1,1)
> if(j==1||j==3||j==5)code = code""substr(c,int(rand()*length(c))+1,1)
> if(j==7||j==8||j==9)code = code""substr(s,int(rand()*length(s))+1,1)
> }
> print code
> }
> }
so I have three syllables and two specials. This should be simple to remember.
Regards
Andrzej Odyniec
|