Re: My experiment with packaging and encrypting sounds with Python

2016-11-20 Thread AudioGames . net Forum — Developers room : Hrvoje via Audiogames-reflector


  


Re: My experiment with packaging and encrypting sounds with Python

Hello,I've updated first post with a new link. Sorry for that.

URL: http://forum.audiogames.net/viewtopic.php?pid=286576#p286576





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: My experiment with packaging and encrypting sounds with Python

2016-11-16 Thread AudioGames . net Forum — Developers room : severestormsteve1 via Audiogames-reflector


  


Re: My experiment with packaging and encrypting sounds with Python

Hi,could you please re-upload this? I am having trouble figuring out how to encrypt, and I feel this could help with my purposes.Thanks.

URL: http://forum.audiogames.net/viewtopic.php?pid=286073#p286073





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: My experiment with packaging and encrypting sounds with Python

2016-10-12 Thread AudioGames . net Forum — Developers room : Hrvoje via Audiogames-reflector


  


Re: My experiment with packaging and encrypting sounds with Python

OK, I'll think about converting my code into python package. But first, I have to reorganize the code to make it better for use and maintenance.

URL: http://forum.audiogames.net/viewtopic.php?pid=282575#p282575





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: My experiment with packaging and encrypting sounds with Python

2016-10-12 Thread AudioGames . net Forum — Developers room : ctoth via Audiogames-reflector


  


Re: My experiment with packaging and encrypting sounds with Python

Also, thanks for building this!

URL: http://forum.audiogames.net/viewtopic.php?pid=282563#p282563





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: My experiment with packaging and encrypting sounds with Python

2016-10-12 Thread AudioGames . net Forum — Developers room : ctoth via Audiogames-reflector


  


Re: My experiment with packaging and encrypting sounds with Python

Hrvoje,It would be awesome if you packaged this up into something on pip for both the case with and without libaudioverse.I'm sure it would help a lot of people who were getting started with audiogame development in Python.Related: we need a centralized place for tracking all the various resources that are out there from Libaudioverse, AO2, etc. etc. as well as stuff like Cam's recent thread on advice for Pyglet and the shadow window.

URL: http://forum.audiogames.net/viewtopic.php?pid=282562#p282562





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: My experiment with packaging and encrypting sounds with Python

2016-09-20 Thread AudioGames . net Forum — Developers room : Hrvoje via Audiogames-reflector


  


Re: My experiment with packaging and encrypting sounds with Python

Hello again.So, after posting a topic on libaudioverse mailing list, I was able to get solution which is easy and works perfectly. Now you can use this code to pack and encrypt data files in your Python games, but keep in mind that this code assumes that you're using Libaudioverse.If you make any modifications or improvements, please share it with me.The new link is: https://dl.dropboxusercontent.com/u/407 … ryption.7z

URL: http://forum.audiogames.net/viewtopic.php?pid=279689#p279689





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

My experiment with packaging and encrypting sounds with Python

2016-09-19 Thread AudioGames . net Forum — Developers room : Hrvoje via Audiogames-reflector


  


My experiment with packaging and encrypting sounds with Python

Hello all,Well, in BGT we have the ability to pack and encrypt sounds for security reasons. Well, I wanted to get the same with Python, so for two days I was googleing and playing around with file encryption and decryption in Python with pycrypto. Basically, what I wanted to achieve is as follows:1. Put all wave files and other game data files inside a zip file.2. Encrypt the zip file so cheeters cannot modify game data, and also to prevent users from modifying sound files.3. When the game needs access to sounds and other secret data, decrypt the zip file with previously set encryption key, but data from decrypted zip must be extracted and accessed from within computer's ram, not from a hard drive, again to prevent users from accessing data inside a package.Fortunately, I was able to achieve all of that, and here's the result (coded in Python 2.7): https://dl.dropboxusercontent.com/u/407 … eriment.7zHowever, there's one issue that I'm aware of.Since I wanted to load wave files from memory directly without accessing hard drive, I had to use Python's wave module and python's io.BytesIO to get this working. But wave module returns wave data as waveform bytes (I think), while some other sound libraries such as LibAudioVerse require array with floats that represent sound data. Fortunately, I was able to get to my friend Google and find some kind of solution on stackoverflow, but this solution has one limitation. You cannot convert 24-bit or hire wave data, only 16-bit. So inside a zip file I have two wave files, splash.wav and telephone.wav. The splash.wav plays normally, however if you try to play the second one you will get an error. Some other Python audio modules such as PyMedia and probably PyAl don't require any conversion. For sound_lib AKA BASS I have no idea.For this code to work, you need Python27, Libaudioverse 0.9A7, and PyCrypto. LAV and I think PyCrypto are both available on pip.Anyway, at the link above is entire code that I was working on for two days, so please give any feedback regarding security, speed and loading packed sound data:Thanks!

URL: http://forum.audiogames.net/viewtopic.php?pid=279614#p279614





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector