biometry_hash_12.py 665 B

123456789101112131415161718192021
  1. def AESmenu(EncDec):
  2. choice = raw_input("Would you like to (E)ncrypt or (D)ecrypt?: ")
  3. f_in = raw_input("Insert the filename with extension: ")
  4. fileblob = file_check(f_in)
  5. while fileblob == 0:
  6. f_in = raw_input("insert the filename with extensions")
  7. fileblob = file_check(f_in)
  8. print( f_in )
  9. #print "3rd time: ", EncDec
  10. if choice == 'E':
  11. #filename = raw_input("File to encrypt: ")
  12. encrypt(EncDec, f_in)
  13. print ("Done.")
  14. elif choice == 'D':
  15. decrypt(EncDec, f_in)
  16. print( "Done.")
  17. else:
  18. print ("No Option selected, closing...")