apps/encryption/lib/Crypto/EncryptAll.php
/**
	 * write one-time encryption passwords to a csv file
	 *
	 * @param array $passwords
	 */
write one-time encryption passwords to a csv file
@param array $passwords
write one - time encryption passwords to a csv file @param array $passwords
protected function writePasswordsToFile(array $passwords) {
		$fp = $this->rootView->fopen('oneTimeEncryptionPasswords.csv', 'w');
		foreach ($passwords as $pwd) {
			fputcsv($fp, $pwd);
		}
		fclose($fp);
		$this->output->writeln("\n");
		$this->output->writeln('A list of all newly created passwords was written to data/oneTimeEncryptionPasswords.csv');
		$this->output->writeln('');
		$this->output->writeln('Each of these users need to login to the web interface, go to the');
		$this->output->writeln('personal settings section "basic encryption module" and');
		$this->output->writeln('update the private key password to match the login password again by');
		$this->output->writeln('entering the one-time password into the "old log-in password" field');
		$this->output->writeln('and their current login password');
	}
protected function writePasswordsToFile ( array $ passwords ) { $ fp = $ this -> rootView -> fopen ( 'oneTimeEncryptionPasswords.csv' , 'w' ) ; foreach ( $ passwords as $ pwd ) { fputcsv ( $ fp , $ pwd ) ; } fclose ( $ fp ) ; $ this -> output -> writeln ( " \n " ) ; $ this -> output -> writeln ( 'A list of all newly created passwords was written to data/oneTimeEncryptionPasswords.csv' ) ; $ this -> output -> writeln ( '' ) ; $ this -> output -> writeln ( 'Each of these users need to login to the web interface, go to the' ) ; $ this -> output -> writeln ( 'personal settings section "basic encryption module" and' ) ; $ this -> output -> writeln ( 'update the private key password to match the login password again by' ) ; $ this -> output -> writeln ( 'entering the one-time password into the "old log-in password" field' ) ; $ this -> output -> writeln ( 'and their current login password' ) ; }
write one-time encryption passwords to a csv file
 @param array $passwords
write one - time encryption passwords to a csv file @param array $passwords