diff options
author | Kenneth Newwood <kenneth@newwood.name> | 2017-09-11 12:52:25 +0200 |
---|---|---|
committer | Kenneth Newwood <kenneth@newwood.name> | 2017-09-11 12:52:25 +0200 |
commit | 7092c50e7c514e795c07be734f105fcbc6f9d21d (patch) | |
tree | 4b036b3824b94f6ad77867485f116124067d0965 /apps/encryption/lib | |
parent | 316c7e18bc8a3475616a88eca4332309a8789b0c (diff) | |
download | nextcloud-server-7092c50e7c514e795c07be734f105fcbc6f9d21d.tar.gz nextcloud-server-7092c50e7c514e795c07be734f105fcbc6f9d21d.zip |
print generated encryption key passwords directly after generating the keys so that errors during the encryption do not lead to a potentially massive data loss
Signed-off-by: Kenneth Newwood <kenneth@newwood.name>
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r-- | apps/encryption/lib/Crypto/EncryptAll.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/encryption/lib/Crypto/EncryptAll.php b/apps/encryption/lib/Crypto/EncryptAll.php index 60c7b13b708..2afab22d522 100644 --- a/apps/encryption/lib/Crypto/EncryptAll.php +++ b/apps/encryption/lib/Crypto/EncryptAll.php @@ -153,12 +153,8 @@ class EncryptAll { $this->createKeyPairs(); } - //setup users file system and encrypt all files one by one (take should encrypt setting of storage into account) - $this->output->writeln("\n"); - $this->output->writeln('Start to encrypt users files'); - $this->output->writeln('----------------------------'); - $this->output->writeln(''); - $this->encryptAllUsersFiles(); + + // output generated encryption key passwords if ($this->util->isMasterKeyEnabled() === false) { //send-out or display password list and write it to a file $this->output->writeln("\n"); @@ -167,6 +163,13 @@ class EncryptAll { $this->output->writeln(''); $this->outputPasswords(); } + + //setup users file system and encrypt all files one by one (take should encrypt setting of storage into account) + $this->output->writeln("\n"); + $this->output->writeln('Start to encrypt users files'); + $this->output->writeln('----------------------------'); + $this->output->writeln(''); + $this->encryptAllUsersFiles(); $this->output->writeln("\n"); } |