Re: [pygame] encrypt/decrypt zip/unzip

2014-10-17 Thread diliup gabadamudalige
i figured out a better way. All the data is written to a dictionary which in turn written to a py file. All the py file are compiled and and are INSIDE the exe. So I deliver ONLY 1 exe. everything including fonts are inside the exe. :) On Sat, Oct 18, 2014 at 5:10 AM, Stuart Axon wrote: > You m

Re: [pygame] encrypt/decrypt zip/unzip

2014-10-17 Thread Stuart Axon
You may as well use some normal encryption using some lib, this zipped method is a little odd. .. unless you want something to get kids into cracking software, that smart kids will break open ? (Which is fine too). On 26 August 2014 14:20, diliup gabadamudalige wrote: > :) please don't get upse

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-26 Thread diliup gabadamudalige
:) please don't get upset or angry. There is no need for that. :) i am writing this software ONLY for windows. it is a music teaching software. Thanks for the support. I have learnt a lot from these forums. On Tue, Aug 26, 2014 at 6:40 PM, Dan Uznanski wrote: > This is ridiculous. Your propos

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-26 Thread Dan Uznanski
This is ridiculous. Your proposed measures 1. Disrupt normal computer operation far beyond any normal use case would dictate, and 2. Do not prevent your stated unwanted behavior. There are lots of programs out there that capture screenshots and video without using the clipboard; on some systems (

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-26 Thread diliup gabadamudalige
Hi Alec, No offence to you or to anyone who may think contrary, but disrupting computer operation is not what this does.Sometimes when I am writing things to my DVD burner windows doesn't respond normally. The normal operation of windows is disrupted. So what is the malware here? There are many oth

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-26 Thread Alec Bennett
> > doesn't fall into the category. :) Not to beat a dead horse, but I respectfully disagree. Note the first criteria in the first line of your linked article: Malware, short for malicious software, is *any software used to disrupt > computer operation*, gather sensitive information, or gain ac

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread diliup gabadamudalige
Also was not referring to full screen mode. On Tue, Aug 26, 2014 at 11:19 AM, diliup gabadamudalige wrote: > https://en.wikipedia.org/wiki/Malware > > doesn't fall into the category. :) > > > On Tue, Aug 26, 2014 at 11:10 AM, Alec Bennett wrote: > >> > some games lock up the os and you need to

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread diliup gabadamudalige
https://en.wikipedia.org/wiki/Malware doesn't fall into the category. :) On Tue, Aug 26, 2014 at 11:10 AM, Alec Bennett wrote: > > some games lock up the os and you need to exit the game to have access > to the os. > > I think you're referring to fullscreen, which doesn't actually "lock up > t

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread Alec Bennett
> some games lock up the os and you need to exit the game to have access to the os. I think you're referring to fullscreen, which doesn't actually "lock up the OS", it just takes over the screen, and all functions of the OS are still as usual. And a critical difference is that fullscreen is functi

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread diliup gabadamudalige
It is stated in the opening screen. some games lock up the os and you need to exit the game to have access to the os. Does that make the game a malware? On Tue, Aug 26, 2014 at 10:46 AM, Alec Bennett wrote: > If you're clearing the Windows clipboard, you might want to let the user > know that.

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread Alec Bennett
If you're clearing the Windows clipboard, you might want to let the user know that. Very prominently. Otherwise your program is basically malware in my opinion. It's still, in my opinion, malware, but at least you'd be warning the user so they'd know that running your program will cripple thei

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread diliup gabadamudalige
Dear Vincent and Dan, All points taken positively. I'm still learning Python and all this help and advice is making me write better and more pythonic code. I will leave this path and continue on the one I started traversing. I thank you all very much. May you be well. On Tue, Aug 26, 2014 at 2

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread Vincent Michel
I agree with Dan. Also, there're some great answers over here: http://stackoverflow.com/questions/261638/how-do-i-protect-python-code For instance I like this one: """ Since no technical method can stop your customers from reading your code, you have to apply ordinary commercial methods. 1 - Lice

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread Dan Uznanski
Why bother? The average user won't care, the skilled users will see through your ruse like it's plastic wrap, and the ones who care but aren't that good will just find out what the skilled users did on the internet. The only thing you do by adding obfuscation is make it a little bit more of a pai

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread diliup gabadamudalige
Thanks for the responses. Firstly I am a bit amused that everybody assumes that I am writing some kind of game. I never mentioned any game. Is it because of Pygame? :) :) I am using Pygame as my graphic interface because it is easy to display all graphics and music (with some MIDI) using Pygame. In

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread Noel Garwick
Diliup, My understanding is that anything you load into memory can be dumped. So if you're just using this to load all game assets at startup, people could extract the assets by duping what the interpreter has loaded into memory (the copies of the unencrypted files). On Mon, Aug 25, 2014 at 11:

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread Vincent Michel
"the password is obfuscated and saved to a py file" I'm curious about this part, how would you do that? Do you plan to distribute only your byte code and hope that no one will reverse it? Also, why do you need a double encryption? If you want to prevent people from browsing your package to find th

[pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread diliup gabadamudalige
Having experimented with various methods to obfuscate image, audio and text files, store them in a zip file pw protect and then retrieving on demand I finally did this. coder= a long string with a lot of characters ( written in a separate py file) strA = XOR(from_disk.read(), coder) str1 = XOR(s