User Tools

Site Tools


en:orx:config:encryption

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:orx:config:encryption [2009/10/07 04:42 (12 years ago)]
iarwain
en:orx:config:encryption [2017/05/30 00:50 (5 years ago)] (current)
Line 18: Line 18:
 @[email protected] @[email protected]
  
-; Finally we put all the settings that we don't want to end user to mess up with+; Finally we include the file containing ​all the settings that we don't want to end user to mess up with
 ; If the end-user did provide values for them, they'​ll be overidden here anyway ; If the end-user did provide values for them, they'​ll be overidden here anyway
-[...]</​code>​+@crypted.[email protected]</​code>​
  
 In the same way, we can add included files for customized inputs, for example. We would add it just after the inclusion of config.ini.\\ In the same way, we can add included files for customized inputs, for example. We would add it just after the inclusion of config.ini.\\
Line 40: Line 40:
  
 ; Non-overridable config stuff (ie. everything else) ; Non-overridable config stuff (ie. everything else)
-[...]</​code>​+@crypted.[email protected]</​code>​
  
 And, of course, you might not want the end-user to mess up with this file, so we now need to encrypt it when releasing our game. And, of course, you might not want the end-user to mess up with this file, so we now need to encrypt it when releasing our game.
- 
- 
 ===== Encryption ===== ===== Encryption =====
  
Line 51: Line 49:
 Well, now that we've said that, let's see how we can use it! =) Well, now that we've said that, let's see how we can use it! =)
  
-First of all, we need an encryption key (or pass phrase). The longer, the better. If you don't provide any, orx's default one will be used, so you might want to change it for one of yours so that others ​can (too easily) decrypt your stuff. ;-)+First of all, we need an encryption key (or pass phrase). The longer, the better. If you don't provide any, orx's default one will be used, so you might want to change it for one of yours so that others ​could not (too easily) decrypt your stuff. ;-)
  
 To set the encryption key, you need to call: To set the encryption key, you need to call:
Line 57: Line 55:
 <code c>​orxConfig_SetEncryptionKey("​MyVeryLongEncryptionKey"​);</​code>​ <code c>​orxConfig_SetEncryptionKey("​MyVeryLongEncryptionKey"​);</​code>​
  
-Of course, as orx will load its main config file it is initialized,​ you need to issue the call to ''​orxConfig_SetEncryptionKey()''​ before initializing orx. It would look something like this:+Of course, as orx will load its main config file **when** ​it is initialized,​ you need to issue the call to ''​orxConfig_SetEncryptionKey()''​ before initializing orx. It would look something like this:
  
 <code c>int main(int argc, char **argv) <code c>int main(int argc, char **argv)
Line 150: Line 148:
  
 <code dos>​-d</​code>​ <code dos>​-d</​code>​
- 
en/orx/config/encryption.1254915763.txt.gz ยท Last modified: 2017/05/30 00:50 (5 years ago) (external edit)