Advertisement
c0d3dsk1lls

Password-Generator-CLI CodedSkills.net

Jun 26th, 2022 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 7.36 KB | None | 0 0
  1. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  2. ##=======================================================================================================================================================================================##
  3. ##----------------------CODEDSKILLS.NET--------------------------------------------------------------------------------------------------------------------------------------------------##
  4. #----------------#PASSWORD-GENETATOR-CLI
  5. #----------------#
  6. import random    #
  7. #----------------#
  8. #++++++++++++++++++++++++++++++++++++++++++++++++++
  9. #-------------------------------------------------------------------------#
  10. letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', #------------#
  11.            'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',    #
  12.            'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',    #
  13.            'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',    #
  14.            'U', 'V', 'W', 'X', 'Y', 'Z']      #---------------------------#
  15. #---------------------------------------------#
  16. #++++++++++++++++++++++++++++++++++++++++++++++++++
  17. #----------------------------------------------------------------#
  18. numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']     #
  19. symbols = ['!', '#', '$', '%', '&', '(', ')', '*', '+']          #
  20. print("------CodedSkills Password Generator------")  #-----------#
  21. nr_letters= int(input("How many letters???\n"))      #
  22. nr_symbols = int(input(f"How many symbols???\n"))    #
  23. nr_numbers = int(input(f"How many numbers???\n"))    #
  24. import random #------------------------------#-------#
  25. password_list = [] #-------------------------#
  26. for char in range(1, nr_letters +1): #-------#
  27.     random_letters = random.choice(letters)  #
  28.     password_list += random_letters  #-------#
  29. for symb in range(1, nr_symbols +1): #-------#
  30.     random_symbol = random.choice(symbols)   #
  31.     password_list += random_symbol   #-------#
  32. for numb in range(1, nr_numbers +1): #-------#
  33.     random_number = random.choice(numbers)   #
  34.     password_list += random_number   #-------#
  35. print(password_list) #----------#----#
  36. random.shuffle(password_list)   #
  37. print(password_list) #-----#----#
  38. password = "" #------------#
  39. for char in password_list: #-----------------#
  40.     password += char #-----------------------#
  41. print(f"Your password is {password}")        #
  42. #--------------------------------------------#
  43. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  44. ##=================================================================================================================================================##
  45. ##-------------------------------------------------------------------------------------------------------------------------------------------------##
  46. ##                                                                                                                                                 ##
  47. ##                                                                                        ##   //                                                  ##
  48. ##----+-#########\   ########  -+#######\\-- +##########   #######\\        /#######\\    ##  //     ######---+-##      ##       /#######\\        ##
  49. ##      ##-          ##|--|##    ##-     ##   ##           ##-     ##      ||-----        ## //        ##       ##----+-##      ||-----         +--##
  50. ##      ##           ##|  |##  -+##    +--##  #######      ##       ##  -- \\#######\\    ## \\        ##       ##      ##------\\#######\\-------+##
  51. ##      ##-        +-##|--|##    ##-     ##   ##           ##-     ##         ------||    ##  \\       ##       ##      ##         ------||--------##
  52. ##      #########/   ########  -#######//-  -+##########   #######//       \\######//     ##   \\    ######---+-#####   #####   \\######//------+--##
  53. ##                                                                                                                                                 ##
  54. ##                                                          https://CodedSkills.net                                                                ##
  55. ##-------------------------------------------------------------------------------------------------------------------------------------------------##
  56. ##=================================================================================================================================================##
  57. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  58.  
  59.  
  60. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  61. ##=======================================================================================================================================================================================##
  62. ##---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------##
  63. ##                                                                                                                                                                                       ##
  64. ##           ###       #######\    #######\       #######       ########     ##  ##     ########     ########       #######     ########       ####        ##         /#######\\         ##
  65. ##          #-##            //          //        \   //    =      ##        ##  ##        ##        ##|--|##       ##  //         ##         //  \\       ##        ||-                 ##
  66. ##            ##          ##\\        ##\\           //            ##        ##  ##        ##        ##|  |##       ###\\          ##        //====\\      ##        \\#######\\         ##
  67. ##            ##            //          //          //             ##        ##  ##        ##        ##|--|##       ##  \\         ##       //      \\     ##                 ||         ##
  68. ##       ##########   ########--  ########--       //       =      ##         ####         ##        ########       ##   \\     ########   //        \\    #######   \\######//          ##
  69. ##                                                                                                                                                                                       ##
  70. ##                                                                         https://1337tutorials.net                                                                                     ##
  71. ##---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------##
  72. ##=======================================================================================================================================================================================##
  73. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.      
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement