Possible Duplicate:
python: how to encrypt a file?
I'm trying to make application that need write secret data in file and allow read data from this file with only user password. do you know any methods for encode/decode file with pass phrase?
Possible Duplicate:
python: how to encrypt a file?
I'm trying to make application that need write secret data in file and allow read data from this file with only user password. do you know any methods for encode/decode file with pass phrase?
You can try PyCrypto module.
However, due to the poor documentation and no official tutorials, you may wish also to see how to encrypt files with AES.
You never considered using Google before asking?
The official documentation has a bunch of tutorials regarding hashing and encryption.
The best-known cryptographic library for Python is PyCrypto. To read in a password in the console, use the getpass module included with Python.