Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Random Generated Passwords

random

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 YoungPythoner

YoungPythoner

    CC Newcomer

  • Member
  • PipPip
  • 17 posts

Posted 04 July 2015 - 06:05 AM

Hey guys, i have an program. It's a password engine. You type a string and Presto! There are an password. I'm thinking the code now it will be finish in 1, 2 or 3 days.



#2 YoungPythoner

YoungPythoner

    CC Newcomer

  • Member
  • PipPip
  • 17 posts

Posted 06 July 2015 - 12:25 AM

Hello guys, i found a code.

//This is a javascript code.
str=prompt("Write a word.")
pass=""
for (a=0; a>str.lenght; a++)
{
rnd=Math.random() * str.lenght
pass.replace(str[rnd], "")
str.replace("", str[rnd])
}
alert("Your password is:" + pass)

Is it working?