Helper class for data encryption.
More...
Helper class for data encryption.
Definition at line 15 of file Crypt.php.
◆ __construct()
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::__construct |
( |
string | $secret | ) |
|
Crypt constructor.
- Parameters
-
- Exceptions
-
Definition at line 44 of file Crypt.php.
◆ decipher()
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::decipher |
( |
int & | $xl, |
|
|
int & | $xr ) |
|
protected |
Deciphers a single 64-bit block
- Parameters
-
- Returns
- void
Definition at line 119 of file Crypt.php.
◆ decrypt()
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::decrypt |
( |
string | $string | ) |
|
Decrypts a given string.
- Parameters
-
- Returns
- string
Definition at line 78 of file Crypt.php.
◆ encipher()
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::encipher |
( |
int & | $xl, |
|
|
int & | $xr ) |
|
protected |
Enciphers a single 64-bit block.
- Parameters
-
Definition at line 100 of file Crypt.php.
◆ encrypt()
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::encrypt |
( |
string | $string | ) |
|
Encrypts a given string.
- Parameters
-
- Returns
- string
Definition at line 56 of file Crypt.php.
◆ setDefaultKeys()
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::setDefaultKeys |
( |
| ) |
|
|
protected |
Sets the default p and s keys.
- Returns
- void
Definition at line 180 of file Crypt.php.
◆ setSecretKey()
PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::setSecretKey |
( |
string | $passphrase | ) |
|
|
protected |
Sets the secret key using the specified pasphrase.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 138 of file Crypt.php.
◆ $p
array PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::$p = [] |
|
protected |
◆ $passphrase
StringHelper PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::$passphrase = null |
|
protected |
◆ $s
array PlanetTeamSpeak\TeamSpeak3Framework\Helper\Crypt::$s = [] |
|
protected |
The documentation for this class was generated from the following file: