This class is a pure PHP implementation of the RSA public key encryption algorithm. It can generate the public and private keys from two prime numbers. The public key should be used to encrypt the data. Only the private key can be used to decrypt the data encrypted with the public key. It has also functionality for digital signature.