This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Bounds-Related Classes
Containers
Controls-Related Classes
Core Library
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Protecting Your Data with a Password

In order to protect your source code and content, you are recommended to use the Archiver tool to archive your resources into UNG archives. It implements data encrypting to avoid unauthorized access and provides a password protection.

To protect resources, you need to create an archive with the password specified and pass the same password on engine initialization. The workflow is as follows:

  • Create an UNG archive with the specified password. For example, to create an archive named files.ung with the 12345 password that contains the textures directory, pass the following CLI:
    Shell commands
    ung_x86 -o files.ung -d textures -p 12345
  • Specify the same password to be passed on engine initialization in the main.cpp file:
    Source code(C++)
    #include <UnigineEngine.h>
    
    /*
     */
    using namespace Unigine;
    
    /*
     */
    int main(int argc,char **argv) {
    	
    	// engine initialization
    	Engine *engine = Engine::init(UNIGINE_VERSION,argc,argv,"my_project","12345");
    	engine->main();
    	Engine::shutdown();
    	
    	return 0;
    }
    Notice
    If you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux and Mac OS X) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders.
    On engine initialization, you can pass NULL as the 4th argument if you don't need that data is stored in user profile:
    Source code(UnigineScript)
    // engine initialization
    Engine *engine = Engine::init(UNIGINE_VERSION,argc,argv,NULL,"12345");
Last update: 2017-07-03
Build: ()