a:2:{s:7:"current";a:7:{s:5:"title";s:16:"Random Generator";s:11:"description";a:2:{s:15:"tableofcontents";a:1:{i:0;a:4:{s:3:"hid";s:16:"random_generator";s:5:"title";s:16:"Random Generator";s:4:"type";s:2:"ul";s:5:"level";i:1;}}s:8:"abstract";s:503:"Simple little script, based on Zenity, that delivers a random string through a GUI.
As Zenity is GTK+ based it works best in Gnome.


#!/bin/sh

$(zenity --title="Random Generator" --question --text="Extra Cryptic?")
if [ $? -eq 0 ]
then
	LENGTH=`zenity --title="Random" --entry-text="12" --entry --text="Lenght of Password (max 60):"`
	RANDOM=`head -c 45 /dev/random | uuencode - | head -n 2 | tail -n 1 | cut -c -$LENGTH`
	zenity --title="Random Cryptic"  --entry-text=$RANDOM --entry --text="Rando…";}s:8:"internal";a:2:{s:5:"cache";b:1;s:3:"toc";b:1;}s:4:"date";a:2:{s:7:"created";i:1168640999;s:8:"modified";i:1168641998;}s:7:"creator";s:6:"Thomas";s:11:"contributor";a:1:{s:7:"domingo";s:6:"Thomas";}s:11:"last_change";a:7:{s:4:"date";i:1168641998;s:2:"ip";s:14:"172.30.255.132";s:4:"type";s:1:"E";s:2:"id";s:23:"howtos:random_generator";s:4:"user";s:7:"domingo";s:3:"sum";s:0:"";s:5:"extra";s:0:"";}}s:10:"persistent";a:4:{s:4:"date";a:2:{s:7:"created";i:1168640999;s:8:"modified";i:1168641998;}s:7:"creator";s:6:"Thomas";s:11:"contributor";a:1:{s:7:"domingo";s:6:"Thomas";}s:11:"last_change";a:7:{s:4:"date";i:1168641998;s:2:"ip";s:14:"172.30.255.132";s:4:"type";s:1:"E";s:2:"id";s:23:"howtos:random_generator";s:4:"user";s:7:"domingo";s:3:"sum";s:0:"";s:5:"extra";s:0:"";}}}