Class Wcal_Aes_Ctr
This class will encrypt and decrypt the data.
-
Wcal_Aes
-
Wcal_Aes_Ctr
Methods summary
public static
encrypted
|
#
encrypt( plaintext $plaintext, password $password, nBits $nBits )
Encrypt a text using AES encryption in Counter mode of operation
- see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
Encrypt a text using AES encryption in Counter mode of operation - see http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
Unicode multi-byte character safe
Parameters
- $plaintext
- text to be encrypted
- $password
- password to use to generate a key
- $nBits
- of bits to be used in the key (128, 192, or 256)
Returns
encrypted text
Since
2.8
|
public static
decrypted
|
#
decrypt( ciphertext $ciphertext, password $password, nBits $nBits )
Decrypt a text encrypted by AES in counter mode of operation
Decrypt a text encrypted by AES in counter mode of operation
Parameters
- $ciphertext
- text to be decrypted
- $password
- password to use to generate a key
- $nBits
- of bits to be used in the key (128, 192, or 256)
Returns
decrypted text
Since
2.8
|