Archive 17/01/2023.

How to encript .as Code to protect

mcra3005

Hi All,

I noticed you have the Urho3DPlayer, but how do you encript your .as code so know one can grab it without your permission.
Any ideas ??

Thanks.

1vanK

[quote=“mcra3005”]Hi All,

I noticed you have the Urho3DPlayer, but how do you encript your .as code so know one can grab it without your permission.
Any ideas ??

Thanks.[/quote]

Sir_Nate

That should compile it to the angelscript byte code, which is probably enough, but true encryption would likely require an additional cryptography library and modifying Urho’s resource/filesystem code to read from the outputs of that library (I think it’s been discussed a little before on the forum in relation to 3d assets).

gawag

It seems Urho can also add “packages” (archives?) as ressources: urho3d.github.io/documentation/1 … 9e44d69cf3
Ogre had the feature of being able to read resources from encrypted .zip-archives. I guess that would be sufficient? Also for protecting game assets. Many games have some kind oi huge foo.data files with all of the game data in it. Would be a cool feature. Maybe make a feature request?

Maybe one can load “raw” files from an encrypted archive by himself and let Urho load that decrypted file from memory?

Edit: Doh! topic1871.html Someone made such a request already.