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 [2010/02/23 00:38 (13 years ago)]
iarwain
en:orx:config:encryption [2010/05/11 20:51 (12 years ago)]
iarwain
Line 43: Line 43:
  
 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.txt ยท Last modified: 2017/05/30 00:50 (5 years ago) (external edit)