Date: Wed, 11 Jun 2008 10:56:42 +0300 From: Nikos Vassiliadis <nvass@teledomenet.gr> To: freebsd-questions@freebsd.org, z.szalbot@lc-words.com Subject: Re: generating random passwords Message-ID: <200806111056.42848.nvass@teledomenet.gr> In-Reply-To: <484F7CBE.5060401@lc-words.com> References: <484F7CBE.5060401@lc-words.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 11 June 2008 10:20:30 Zbigniew Szalbot wrote: > Excuse me my ignorance. Is there a utility in FreeBSD that would allow > me to generate random passwords without actually creating any accounts > or modifying existing ones? I am looking for something to allow me to > generate a random string of characters. I know I can randomly hit the > keyboard but if anything like that exists, many thanks for your advice. > :) That's a common problem I have, and most of the times I was on relying on BASH's $RANDOM. Just thought of this: sed -n 's/[^a-zA-Z0-9~`!@#$%^&*()_+=-|\]//g; /^\(.\{10\}\).*/{ s//\1/p; q; }; b' /dev/urandom HTH, Nikos
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806111056.42848.nvass>