[rekonq] Random Password Generation (for password fields)

Jonathan Verner jonathan.verner at matfyz.cz
Sun Nov 10 15:14:03 UTC 2013


Hello,

for some time now, I have been using the pwgen utility to generate
random passwords for all the different web accounts I register.
While this works it would be much nicer to have this integrated into
the browser. So this past Saturday I sat down and implemented a
proof of concept integration for rekonq (see attached patch). 

My implementation adds a "Generate random password" context menu action when 
the menu is shown above a password input field. This action 

  1. generates a random password of length 20 chars
  2. fills in the password input field with the password
  3. iterates over all password fields in the same form
     and fills them with the password (since registration
     forms often have a confirm password field)
  4. copies the password to the clipboard

The generator uses qrand to generate the passwords, which are alphanumeric. It 
tries to use /dev/urandom or, if not available, the number of milliseconds 
since 1/1/1970 to seed the random number generator on first use.

What do you think?

Best,

Jonathan Verner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pwgen.patch
Type: text/x-patch
Size: 8104 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rekonq/attachments/20131110/6dce1332/attachment.patch>


More information about the rekonq mailing list