Is it possible to encrypt blend files?

Hi,
I recently made an encryptor with python and I was wondering if I could encrypt a file using a encryption alogarith like the one a made and the be able to decrypt it and still be able to run it?

I ask this because if it is possible to do that then it is possible to encrypt .blend files?

A common way of setting out a blender game is to have a single .exe which runs a blend file or has linked data from many blends, but someone can just then open your blend and take what they want (I’m not too fussed about this myself) but I thought it would be pretty nifty to be able to encrypt these blend files and decrypt them through the .exe when they’re needed.

Can it be done or am I a dreamer?

We’ve been over this before. You most likely don’t need to encrypt your files.

Sounds like you could do it out side of blender, just make your os, recognize that the file is encrypted.

DeltaSpeeds’ BPPlayer is the only thing that can crypt/decrypt blendfiles in some useful way, the bpplayer is an external program that crypts/decrypts blenderfiles and opens them with the blenderplayer via memory (without saving the decrypted file).

but yeah, you can encrypt a blendfile, but if you want to run it in the blenderplayer directly you have to publish the encryption key and algorythm (the blenderplayer’s code is gpl, you have to share ALL the code upon distribution) kinda defeating the purpose.

To keep people from poking around your .blends, just enable autorun. First, make a backup of your file, then go to Game -> Autostart. Now, whenever the .blend file is opened, it will play. But, as I said earlier, MAKE A BACKUP. This way you’ll still be able to make changes. Now, who cares if your .blend files get opened, people aren’t going to be able to get anything out of them.

You can append the scene from an autorun blend…

They still can open it like normal if you open from blender instead of opening from double clicking on the blend

the only way as campbel barton say, is to hack the dna structures so it will crash all blenders except your blenderplayer build