コード例 #1
0
ファイル: LiveUser.php プロジェクト: laiello/punchcms
 /**
  * Creates an instance of the PEAR::Crypt_Rc4 class.
  *
  * @param  string token to use to encrypt data
  * @return Crypt_RC4 returns an instance of the Crypt_RC4 class
  *
  * @access public
  */
 function &cryptRC4Factory($secret)
 {
     $rc4 = false;
     if (LiveUser::loadClass('Crypt_Rc4')) {
         $rc4 =& new Crypt_Rc4($secret);
     }
     return $rc4;
 }