Searched refs:encrypt (Results 1 – 9 of 9) sorted by last modified time
8 * Here's an example of how to encrypt and decrypt text with this library:18 * $ciphertext = $public->encrypt($plaintext);86 * @see self::encrypt()97 * @see self::encrypt()108 * @see self::encrypt()3189 function encrypt($plaintext) global() function in phpseclib\\Crypt\\RSA
171 //return $crypto->encrypt(str_repeat("\0", $length));183 $i = $crypto->encrypt(microtime()); // strlen(microtime()) == 21184 $r = $crypto->encrypt($i ^ $v); // strlen($v) == 20185 $v = $crypto->encrypt($r ^ $i); // strlen($r) == 20
25 * echo $rc2->decrypt($rc2->encrypt($plaintext));67 * @see self::encrypt()385 * Mostly a wrapper for \phpseclib3\Crypt\Common\SymmetricKey::encrypt, with some additional OpenSSL handling code391 public function encrypt($plaintext)396 $result = parent::encrypt($plaintext); function in phpseclib\\Crypt\\RC2 401 return parent::encrypt($plaintext);409 * @see self::encrypt()430 * @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()535 * Setup the performance-optimized function for de/encrypt()541 // Init code for both, encrypt an[all...]
33 * echo $rc4->decrypt($rc4->encrypt($plaintext));167 public function encrypt($plaintext)170 return parent::encrypt($plaintext);178 * $this->decrypt($this->encrypt($plaintext)) == $this->encrypt($this->encrypt($plaintext)).181 * @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()243 * @see self::encrypt()229 function encrypt($plaintext) global() function in phpseclib\\Crypt\\RC4
6 * Uses mcrypt, if available, and an internal implementation, otherwise. Operates in the EDE3 mode (encrypt-decrypt-encrypt).25 * echo $des->decrypt($des->encrypt($plaintext));273 * @see \phpseclib3\Crypt\Common\SymmetricKey::encrypt()277 public function encrypt($plaintext)284 return $this->des[2]->encrypt(286 $this->des[0]->encrypt(293 return parent::encrypt($plaintext);308 $this->des[1]->encrypt(327 * echo $des->encrypt(subst295 function encrypt($plaintext) global() function in phpseclib\\Crypt\\TripleDES [all...]
426 private $encrypt = false;1663 $encrypt = self::array_intersect_first($c2s_encryption_algorithms, $this->encryption_algorithms_client_to_server);1664 $encryptKeyLength = $this->encryption_algorithm_to_key_size($encrypt);1909 $this->encrypt = self::encryption_algorithm_to_crypt_instance($encrypt);1910 if ($this->encrypt) {1912 $this->encrypt->setPreferredEngine(self::$crypto_engine);1914 if ($this->encrypt->getBlockLengthInBytes()) {1915 $this->encrypt_block_size = $this->encrypt->getBlockLengthInBytes();1917 $this->encrypt412 var $encrypt = false; global() variable in phpseclib\\Net\\SSH2 [all...]
362 * Creates a random key to encrypt the password in cookies450 return $cipher->encrypt($iv . $data);