Example #1
0
 /**
  * Method to be called statically to encrypt in one easy call
  *
  * @param $data
  * @param $publicKey
  * @param $secretKey
  * @param int $apiVersion
  * @return string
  */
 public static function encrypt($data, $publicKey, $secretKey, $apiVersion = 1)
 {
     $encrypt = new self($data, $publicKey, $secretKey, $apiVersion);
     return $encrypt->encryptData($data);
 }