protected Pack...

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Skipsy.

Just for brainstorm...

Imagine you have spend hours creating sprites, sounds etc...
you dont want anybody to "exploit" your work for other aim.

As there is no password option when packing/Unpacking, do you see
an easy way to do this.
The first I have in mind is to code the file in memory,
pack the file then unpack and decode it in memory.

Cheers

"If you want to touch the sky,
f**k a duck and try to fly"
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Yep, it can be done easily. Just write a little XOR routine which encode (encode the packed buffer of course, else it willn't pack well anymore).

Fred - AlphaSND
Post Reply