Google™ Posted December 24, 2018 Report Share Posted December 24, 2018 (edited) Stop getting hacked! Use this JavaScript code to generate a random password unique to you. var chars = "!@#$%^&*()0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var pass_length = prompt("How long do you want the pass to be?"); // set this to a specific number if you're not using JSFiddle or something like that var randomstring = ''; for (let i = 0; i < pass_length; i++) { let rnum = Math.floor(Math.random() * chars.length); randomstring += chars.substring(rnum,rnum+1); } document.write(`${randomstring}`); // Used to see password if you're using JSFiddle console.log(`${randomstring}`); // Puts out the randomly generated password to the console, use this if you're using CMD to run the code Edited December 24, 2018 by Google™ Heidelberg likes this Link to comment
Big Fred Posted December 26, 2018 Report Share Posted December 26, 2018 I just use roll my face over the keyboard. I'm oldschool like that. Link to comment
Chance R Posted December 26, 2018 Report Share Posted December 26, 2018 3 hours ago, Big Fred said: I just use roll my face over the keyboard. I'm oldschool like that. massi likes this Link to comment
massi Posted December 26, 2018 Report Share Posted December 26, 2018 or you can just use a password manager Professor Pericles and Chance R like this Link to comment
signal Posted December 26, 2018 Report Share Posted December 26, 2018 On 12/24/2018 at 5:50 PM, Google™ said: Stop getting hacked! Use this JavaScript code to generate a random password unique to you. var chars = "!@#$%^&*()0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var pass_length = prompt("How long do you want the pass to be?"); // set this to a specific number if you're not using JSFiddle or something like that var randomstring = ''; for (let i = 0; i < pass_length; i++) { let rnum = Math.floor(Math.random() * chars.length); randomstring += chars.substring(rnum,rnum+1); } document.write(`${randomstring}`); // Used to see password if you're using JSFiddle console.log(`${randomstring}`); // Puts out the randomly generated password to the console, use this if you're using CMD to run the code FuCKnn Aye DAt $Hittttt cooL AAsss FUK Brahhhh ThaNksss 4 Daa MeThodDddddd massi and Google™ like this Link to comment
Google™ Posted December 26, 2018 Author Report Share Posted December 26, 2018 39 minutes ago, massi said: or you can just use a password manager And they can get hacked letting your password get leaked. Take security into your own hands. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now