Class: atkBajusEncryption
Source Location: /security/encryption/class.atkbajusencryption.inc
Class atkBajusEncryption
Method Summary
| mixed |
decrypt() |
The decryption method for decrypting data with the bajus algorithm |
| string |
decryptKey() |
Decryptionmethod for a key. This implementation decrypt the key with de bajus algoritm |
| mixed |
encrypt() |
The encryption method for encrypting data with the bajus algorithm |
| string |
encryptKey() |
Encryptionmethod for a key. This implementation encrypt the key with de bajus algoritm |
Methods
mixed decrypt(
mixed
$input, mixed
$key
)
|
|
The decryption method for decrypting data with the bajus algorithm
Parameters:
|
mixed |
$input: |
the data we want to encrypt |
|
mixed |
$key: |
the key we want to encrypt the data with |
API Tags:
| Return: | the encrypted data |
Redefinition of:
- atkEncryption::decrypt()
- Decryptionmethod, decrypts your input with a key
string decryptKey(
string
$key, string
$pass
)
|
|
Decryptionmethod for a key. This implementation decrypt the key with de bajus algoritm
Parameters:
|
string |
$key: |
The encrypted key |
|
string |
$pass: |
The password to decrypt de key |
API Tags:
| Return: | The decrypted key |
Redefinition of:
- atkEncryption::decryptKey()
- Decryptionmethod for a key. This implementation returns simple the input
mixed encrypt(
mixed
$input, mixed
$key
)
|
|
The encryption method for encrypting data with the bajus algorithm
This isn't strong encryption, it is meant mainly for testing purposes.
Parameters:
|
mixed |
$input: |
the data we want to encrypt |
|
mixed |
$key: |
the key we want to encrypt the data with |
API Tags:
| Return: | the encrypted data |
Redefinition of:
- atkEncryption::encrypt()
- Encryptionmethod, encrypts your input with a key
string encryptKey(
string
$key, string
$pass
)
|
|
Encryptionmethod for a key. This implementation encrypt the key with de bajus algoritm
Parameters:
|
string |
$key: |
The decrypted key |
|
string |
$pass: |
The password to encrypt de key |
API Tags:
| Return: | The encrypted key |
Redefinition of:
- atkEncryption::encryptKey()
- Encryptionmethod for a key. This implementation returns simple the input