title: writing a variable to a text file and encrypting it?
body: <p>i know how to save a users input to a text file but how do i encrypt it? here is what i have for saving a users input to text file. i tried <code>f.encrypt("Passwords_log.txt"</code> but had no results</p>
  
  <pre><code>import time
  password1 = input("Please type a password: ")
  print("Your password has passed the verification!")
  time.sleep(1)
  print("Saving and encrypting password...")
  time.sleep(2)
  f=open("Passwords_log.txt",'a')
  f.write(password)
  f.write('\n')
  f.close()
  print("Done!")
  </code></pre>