decrypt() abstract public method

Decrypts a string.
abstract public decrypt ( string $text ) : string
$text string The string to encrypt.
return string The ciphertext.
コード例 #1
0
ファイル: Blowfish.php プロジェクト: pzhu2004/moodle
 /**
  * Decrypts a string.
  *
  * @param string $text  The string to decrypt.
  *
  * @return string  The plaintext.
  * @throws Horde_Crypt_Blowfish_Exception
  */
 public function decrypt($text)
 {
     if (!is_string($text)) {
         throw new Horde_Crypt_Blowfish_Exception('Data to decrypt must be a string.');
     }
     return $this->_crypt->decrypt($text);
 }