The quality of encryption algorithms depends on how hard they are to break using brute force methods.
Most strong encryption methods also take a lot of CPU resources to encrypt and decrypt data.
One time pad algorithms are much simpler and take less resources when used to encrypt and decrypt data.
This class implements a one-time pad algorithm in pure PHP code. It generates several hashes of the encryption password to compute a random cypher that is used to encrypt and decrypt data.
The actual encryption and decryption is very light because it consists of a simple XOR operation over the data to encrypt or decrypt. The encryption and encryption procedure is the same, making the class very small.