Made encrypt_passwd method public as requested in #1485071

release-0.6
thomascube 16 years ago
parent 8fa58e72a3
commit 26539d5f99

@ -758,7 +758,7 @@ class rcmail
* @param string Password to encrypt * @param string Password to encrypt
* @return string Encryprted string * @return string Encryprted string
*/ */
private function encrypt_passwd($pass) public function encrypt_passwd($pass)
{ {
if (function_exists('mcrypt_module_open') && ($td = mcrypt_module_open(MCRYPT_TripleDES, "", MCRYPT_MODE_ECB, ""))) { if (function_exists('mcrypt_module_open') && ($td = mcrypt_module_open(MCRYPT_TripleDES, "", MCRYPT_MODE_ECB, ""))) {
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND);

Loading…
Cancel
Save