View Single Post
  #3   (View Single Post)  
Old 10th February 2014
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Or you can use /dev/[u]random and hexdump(1).

Attached is a simple script I was working on recently to make WPA pre-shared keys or passphrases for wpa_supplicant. It could use a bit more investigation of a gray area, but not sure if I'll get around to it. The basic idea is there and since hexdump is in many unices, it should be very portable. You could use it to make other kinds of passwords, etc. BTW, the passphrase part of this assumes ASCII, so some may want to change that part depending on intended use.

The file upload for attachment keeps failing, athough data is transferred. Is it a forum problem or is it me?

Here's a link for the time being: randpass.sh.bz2

Last edited by IdOp; 10th February 2014 at 06:27 PM.
Reply With Quote