Hi all! Is there any way I can bundle all my graphics only using Python and Pygame so that the user may not be able to read them out of the program? Let us assume that the user does NOT know Python and will not go looking for people who knows Python to crack the files. In other words an average user.
1. I have tried the Zip file method by making a Zip file with Win Rar or Winzip and password lock the file. But the unpacking is WAY TOO SLOW! with ZipFile('stuff.zip') as zf: zf.extract("image.jpg", pwd="123456") 2. I have used the repr command and written the code to a py file but again the unpacking is WAY TOO SLOW. with open(name4pypath,"wb") as outfile: outfile.write(name4pyfile + "=" + repr(str1)) 3. The best out of the lot has been the one using base64 str1 = base64.b64encode(from_disk.read()) with open(code_to_dir, "ab+") as to_disk: to_disk.write(str1) Can anyone show me a better way? Thanks in advance -- Diliup Gabadamudalige http://www.diliupg.com http://soft.diliupg.com/ ********************************************************************************************** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. **********************************************************************************************
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor