0

Is there any way to encrypt/decrypt all image files and audio files with python storing them in a password protected file and then retrieving them again without slowing donw the decryption part?

2
Contributors
3
Replies
23
Views
3 Years
Discussion Span
Last Post by diliupgabadamudalige
0

I would like to package my program with py2exe for distribution. Py2exe is not very happy with some packages and modules. I tried to use pickle and shelve but these have a problem compiling with py2exe.
So i am experimenting with other ways to obsfucate the graphics, audio and the text files so the use can't tamper with them. I tried to lock them up in a zip file. Putting them into the zip file amnd password locking it works well but the retrival time is WAY TOO SLOW. So if there is any way to use only python and pygame to encrypt the above files so that they can be accessed only thru the program, and the retrival is very short that would be fine.

1

I downloaded and installed a new lib called czipfile which uses ctypes and the speed incerease in decryption of all files is incredible. An image that took 19.96 seconds now takes 0.02 seconds! If this compiles with py2exe then problem solved. Share this with others who might be interested.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.