mixed encrypt(
mixed
$plaintext)
|
|
Encrypts a plain text
As the XXTEA encryption algorithm is designed for encrypting and decrypting the long integer array type of data, there is not a standard that defines how to convert between long integer array and text or binary data for it. So this package provides the ability to encrypt and decrypt the long integer arrays directly to satisfy the requirement for working with other implementations. And at the same time, for convenience, it also provides the ability to process strings, which uses its own method to group the text into array.
Parameters: