Skip to content

defold/extension-resource-encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

extension-resource-encryption

This extension implements a buildtime plugin for encryption of resources in the game archive and a runtime counterpart to decrypt the resources. The extension uses the same encryption algorithm as in the official Defold source code, but since it can be forked it allows developers to replace the default encryption key with a private project specific key.

NOTE: Defold does not encrypt all resources in a game archive. Instead Defold encrypts a subset of resource types where it may be desirable to apply additional protection.

Installation

To use this library in your Defold project you need to make a fork of this repository and then add the repository archive URL to your game.project dependencies. Example (replace %YOUR_ORG% with your GitHub user or organisation):

https://github.com/%YOUR_ORG%/extension-resource-encryption/archive/master.zip

Modifying the extension

The extension consists of two parts:

NOTE: When the buildtime encryption part of the plugin has changed it needs to be compiled and packaged as a .jar file for Bob to use. Run the build_plugin.sh script to build the jar file and copy it to the correct location (resourceencryption/plugins/share/). The script needs a copy of bob.jar.

Replace the key

When you fork this repository make sure to change the key in both the buildtime and runtime part of the extension:

Use your own encryption

Use this extension as a base to apply your own encryption algorithm to the resources. Using custom encryption will add another layer of security as the encryption algorithm will not be know to an attacker.

About

Example of how to create a resource encryption plugin for Defold assets

Resources

License

Stars

Watchers

Forks

Releases

No releases published