Password Generator – WordPress Plugin

I created this Password Generator plugin for WordPress. Running my own random password generator I can be sure 1) the passwords are truly random, and 2) the passwords are not copied or saved at all when they are generated.

My plugin adds a shortcode to WordPress and accepts the following parameters:

  • count=’20’ (the numbers of passwords you want generated)
  • length=’12’ (the length of the passwords)
  • case=’mixed’ (upper, lower, or mixed case)
  • special=’$,#,%,^,&’ (a list of the characters to use a special characters), or ‘false’ for none

The display below has been enlarged to make the passwords easier to see. I did this through CSS, which will not come though when you copy and paste.

KMR Password Generator

1. zsc$frCJotZab
2. SAc-PHDB7nsUf
3. pUb~E8DU62Aqh
4. ajY#00DYlfEOe
5. Qle:Zjz5GT5PA
6. h6I^X4PzaW569
7. wRT^53ZPSrxs4
8. 0Ct:CVI4DTZHn
9. 86U$YH6Ata3oG
10. FXz%1N27J7qop
11. tAF&KNYg3rzMh
12. x87^CJEqDp9OK
13. wVX&LOWHb4riM
14. 7xR&wSCKJLNrd
15. kyx^Hb28X8QKs
17. NAq-BJjOCcmQv
18. D1J#b9J7MFEEo
19. kln*aBMLI8lIU
20. IZj:QZ8wgjv0b

What Next?

Features to consider for the next version …

The generator only includes 1 special character per password. Should more special characters be included in the password? Should it be optional how many (2, 3, 4, etc) are included?

I don’t like my mixed case function, it’s not guaranteed to include both upper and lower case. Got any ideas for a function to do this correctly and efficiently? I’m open for suggestions.

Published by


Kimball is a website designer and developer in Goffstown, NH.

Leave a Reply

Your email address will not be published. Required fields are marked *