Here is a little script I put together to generate passwords based upon the kernel's /dev/random function. I think it does as good a job as your pwgen for most practical purposes - though I haven't tested its "strength" - and is roughly 15x smaller. Please have a look if you eventually do a rewrite of your gui.

With kind regards,
vovchik

PS. Lobster, that is a very useful little tip - using lyrics. I think I'll adopt the method.

Please feel free to use the script as you wish. You are right in that extra chars can be added to the my_chars var. I just modded the script a tiny bit and added a max_len var to control the length of the password. Please have a look, because it may offer more flexibility than the original.

Sure, just change the max_len=8 to max_len=12 or 20, if you wish. If you name that quantity using a var, you can pass the length to the script, which may be convenient. And you can change the my_chars var easily, too, but make sure you have at least as many chars (+1 blank at the beginning to avoid a division by zero) as in the max_num var. I suppose script could be improved by having the length of the my_chars var computed automatically and assigned to the my_chars var. I think that would be efficient and save you the trouble of counting the string length manually, as I now have it. I also came across another password generating snippet that looked very useful - different method entirely - but don't know where I copied it to. If I find it again, I will post it here.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum