Login +

Reference Guide / SLS_Security

SLS_Security1 is a class of encryption / decryption RSA.


At Controller level, you can access it directly by inheritance on SLS_Generic2Controller:

// Or directly statically

At others levels (PHP), you can access it by reference to SLS_Generic2:

// Or if u haven't a reference to SLS_Generic, using the singleton:

Encryption / Decryption

- If you want to encrypt a string, you can use the encrypt() function:


- If you want to decrypt a string, you can use the decrypt() function:



  1. SLS_Security - Manage Security
  2. SLS_Generic - Generic Class - Used eveywhere in the application