Home
last modified time | relevance | path

Searched refs:encrypt (Results 1 – 9 of 9) sorted by last modified time

/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DRSA.php8 * 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
H A DRandom.php171 //return $crypto->encrypt(str_repeat("\0", $length));
183 $i = $crypto->encrypt(microtime()); // strlen(microtime()) == 21
184 $r = $crypto->encrypt($i ^ $v); // strlen($v) == 20
185 $v = $crypto->encrypt($r ^ $i); // strlen($r) == 20
H A DBase.php
H A DRC2.php25 * 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 code
391 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...]
H A DRC4.php33 * 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
H A DTripleDES.php6 * 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(subst
295 function encrypt($plaintext) global() function in phpseclib\\Crypt\\TripleDES
[all...]
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSSH1.php
H A DSSH2.php426 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->encrypt
412 var $encrypt = false; global() variable in phpseclib\\Net\\SSH2
[all...]
/dokuwiki/inc/
H A Dauth.php362 * Creates a random key to encrypt the password in cookies
450 return $cipher->encrypt($iv . $data);