apps/files_external/lib/config.php
/**
	 * Encrypt a single password
	 *
	 * @param string $password plain text password
	 * @return string encrypted password
	 */
Encrypt a single password
@param string $password plain text password
@return string encrypted password
Encrypt a single password @param string $password plain text password @return string encrypted password
private static function encryptPassword($password) {
		$cipher = self::getCipher();
		$iv = \OCP\Util::generateRandomBytes(16);
		$cipher->setIV($iv);
		return base64_encode($iv . $cipher->encrypt($password));
	}
private static function encryptPassword ( $ password ) { $ cipher = self :: getCipher ( ) ; $ iv = \ OCP \ Util :: generateRandomBytes ( 16 ) ; $ cipher -> setIV ( $ iv ) ; return base64_encode ( $ iv . $ cipher -> encrypt ( $ password ) ) ; }
Encrypt a single password
 @param string $password plain text password
 @return string encrypted password
Encrypt a single password @param string $password plain text password @return string encrypted password