Advertisement
BobMe

passwordgen

Oct 23rd, 2019
1,459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. local seed = 234234
  2.  
  3. password_components1 = {"obama","cheese","frenchfry","internet","minecraft","family","apple","popcorn","hop","pop","google","yahoo","bannana","potato","grill","bro","applebees","dollar",
  4. "store","scratch","steak","computer","sprite","cocacola","rootbear","soda","theme","code","feedback","puppy","dog","kitty","kitten","cat","notebook","rat","mouse","blue","yellow","red","purple",
  5. "pink","orange","indigo","green","violet","white","black","boy","girl","children","brother","mother","son","daughter","mint","tictac","checkers","hershey","chess","soccer","football","horse",
  6. "wife","oranges","passwords","sentence","grammer","grandma","grandpa","gamer","speaker","phone","airpods","alphabet","pizza","pie","sasuage","pepperoni","backpack","taco","tacocat","racecar",
  7. "nyancat","pewdiepie","roblox"}
  8. alphabet = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
  9. special_char = {"*","!","@","#","$","%","^","&"}
  10.  
  11. --chached variables
  12. local pass;
  13. local let1;
  14. local let2;
  15. local spec;
  16. local beg;
  17. local loop;
  18. local password = ""
  19. local specia;
  20.  
  21. for i=1,seed do
  22. pass = password_components1[math.random(1,#password_components1)]
  23. let1 = alphabet[math.random(1,#alphabet)]
  24. let2 = alphabet[math.random(1,#alphabet)]
  25. spec = special_char[math.random(1,#special_char)]
  26. specia = math.random(1,2)
  27. beg = math.random(1,2)
  28. loop = math.random(1,3)
  29. end
  30.  
  31. if beg == 1 then
  32. for i=1,loop do
  33. password = password..let1..let2
  34. end
  35. password = password..pass
  36. if specia == 1 then
  37. password = password..spec..tostring(math.random(10,99))
  38. else
  39. password = password..tostring(math.random(10,99))
  40. end
  41. else
  42. password = password..pass
  43. for i=1,loop do
  44. password = password..let1..let2
  45. end
  46. if specia == 1 then
  47. password = password..spec..tostring(math.random(10,99))
  48. else
  49. password = password..tostring(math.random(10,99))
  50. end
  51. end
  52.  
  53. print(password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement