Source for Random Password Generator « Thread Started on Mar 19, 2007, 11:40pm »
Placement: anywhere you like. Compatability: PBv4 / Crossbrowser Notes: Can be placed anywhere you like on your forum, preferrably at the footer. Passwords can be generated at 4 different strengths, each including uppercase, lowercase, numbers, and special characters. I recommend using atleast a 10 character password mixed with all four combinations.
<script type="text/javascript"> <!--
// Random Password Generator v2 // Open source
var allPassChars = ''; allPassChars += '9876543210'; // number generation allPassChars += 'aBcDeFgHiJkLmNoPqRsTuVwXyZ'; // upper/lowercase generation allPassChars += '~!@#$%^&*()_+\{\}\\\[\]><?'; // special character generation
function doRanPass(len) { var pass = ''; var passInp = dogooent.getElementById('passinp'); if (len != parseInt(len) || !len.match(/[\d.]/)) { return passInp.value = 'Please select strength.'; } else if (len == parseInt(len)) { for (var i = parseInt(len - 1); i >= 0; i--) { pass += allPassChars.charAt(Math.floor(Math.random() * (allPassChars.length - 1))); } return passInp.value = pass.replace(/\s/g, ''); } }
Creation, Betrayal, Peace, the Fall of Empires, the Rise of Empires, Wrath, Victory, the Past, the Future, Death, Resurrection, Eternity... Read the Bible... It will scare the "Hell" out of you!