apps/encryption/lib/Migration.php
/**
	 * rename user-specific private keys
	 *
	 * @param string $user
	 */
rename user-specific private keys
@param string $user
rename user - specific private keys @param string $user
private function renameUsersPrivateKey($user) {
		$oldPrivateKey = $user . '/files_encryption/' . $user . '.privateKey';
		$newPrivateKey = $user . '/files_encryption/' . $this->moduleId . '/' . $user . '.privateKey';
		if ($this->view->file_exists($oldPrivateKey)) {
			$this->createPathForKeys(dirname($newPrivateKey));
			$this->view->rename($oldPrivateKey, $newPrivateKey);
		}
	}
private function renameUsersPrivateKey ( $ user ) { $ oldPrivateKey = $ user . '/files_encryption/' . $ user . '.privateKey' ; $ newPrivateKey = $ user . '/files_encryption/' . $ this -> moduleId . '/' . $ user . '.privateKey' ; if ( $ this -> view -> file_exists ( $ oldPrivateKey ) ) { $ this -> createPathForKeys ( dirname ( $ newPrivateKey ) ) ; $ this -> view -> rename ( $ oldPrivateKey , $ newPrivateKey ) ; } }
rename user-specific private keys
 @param string $user
rename user - specific private keys @param string $user