Example #1
0
 /**
  * Simple way to encrypt a 4 bytes long ASCII string
  *
  * @param string $key  ASCII representation of a 10 bytes long key
  * @param int    $data 4 bytes block integer
  *
  * @return string
  */
 public static function encrypt($key, $data)
 {
     $simple = new self($key);
     return $simple->enc($data);
 }