Advertisement
Guest User

aa

a guest
Aug 24th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. import os
  2. import sys
  3.  
  4. ##############################
  5.  
  6. # PASSWORDS DATABASE
  7.  
  8. ##############################
  9.  
  10. passwords = {}
  11.  
  12. ##############################
  13.  
  14. # FIRST CONNECTION FUNCTION
  15.  
  16. ##############################
  17.  
  18. def firstConnection():
  19.  
  20.     # WELCOME MESSAGE
  21.  
  22.     print(" "*31 + "Benvenuto\nPrima di iniziare digita un pin (con solo caratteri numerici) per proteggere le tue passwords")
  23.     pin = int(input(">>>: "))
  24.  
  25.     # MAKE DIRECTORY FOR THE PIN FILE
  26.     dir = "C:\\Users\\Public\\Documents"
  27.     os.chdir(dir)
  28.  
  29.     # CREATE A FILE WITH THE PIN
  30.     createFile = open("dXNlcmNvbm5lY3Rpb24=.txt", "w+")
  31.     createFile.write(str(pin))
  32.     createFile.close()
  33.  
  34.     # START PROGRAM
  35.  
  36. ##############################
  37.  
  38. firstConnection()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement