apps/encryption/lib/Crypto/EncryptAll.php
/**
	 * encrypt all user files with the master key
	 *
	 * @param ProgressBar $progress
	 */
encrypt all user files with the master key
@param ProgressBar $progress
encrypt all user files with the master key @param ProgressBar $progress
protected function encryptAllUserFilesWithMasterKey(ProgressBar $progress) {
		$userNo = 1;
		foreach($this->userManager->getBackends() as $backend) {
			$limit = 500;
			$offset = 0;
			do {
				$users = $backend->getUsers('', $limit, $offset);
				foreach ($users as $user) {
					$userCount = "$user ($userNo)";
					$this->encryptUsersFiles($user, $progress, $userCount);
					$userNo++;
				}
				$offset += $limit;
			} while(count($users) >= $limit);
		}
	}
protected function encryptAllUserFilesWithMasterKey ( ProgressBar $ progress ) { $ userNo = 1 ; foreach ( $ this -> userManager -> getBackends ( ) as $ backend ) { $ limit = 500 ; $ offset = 0 ; do { $ users = $ backend -> getUsers ( '' , $ limit , $ offset ) ; foreach ( $ users as $ user ) { $ userCount = " $ user  ( $ userNo ) " ; $ this -> encryptUsersFiles ( $ user , $ progress , $ userCount ) ; $ userNo ++ ; } $ offset += $ limit ; } while ( count ( $ users ) >= $ limit ) ; } }
encrypt all user files with the master key
 @param ProgressBar $progress
encrypt all user files with the master key @param ProgressBar $progress