is it possable to make a password or username generator

506 views
Skip to first unread message

caleb Newcombe

unread,
May 15, 2017, 7:53:58 PM5/15/17
to MIT App Inventor Forum
hi for a class project I need to make an app and have decided to make a username and password generator and said that before I knew if I could do it or not the way I want to make it is by using text boxes for people to answer questions and then it puts all of the information together it would really help if you could find out or let me know something else I could do instead

SteveJG

unread,
May 15, 2017, 8:50:25 PM5/15/17
to MIT App Inventor Forum
For part of your project, you want a random number and or letter generator.  App Inventor has the blocks.   use the random aset seed block  and the random block in the Math blocks   doing something like in this 
http://stackoverflow.com/questions/1497481/javascript-password-generator   .  This is javascript but the principles are the same ... this suggests using a random number generator to select a character at a time out of a string like   "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"   
These characters could be put in a list and you could then use the  pick a random item  (this is a List block)   from the list  say eight times to make an 8 character random password.



There will probably be others posting other ideas.  Good luck.

Regards,
Steve
Reply all
Reply to author
Forward
0 new messages