diff --git a/apps/encryption/lib/crypto/crypt.php b/apps/encryption/lib/crypto/crypt.php index 91f986611b..c026aa6a90 100644 --- a/apps/encryption/lib/crypto/crypt.php +++ b/apps/encryption/lib/crypto/crypt.php @@ -245,7 +245,7 @@ class Crypt { if (!empty($header)) { $privateKey = substr($privateKey, strpos($privateKey, - self::HEADER_END) + strlen(self::HEADER_START)); + self::HEADER_END) + strlen(self::HEADER_END)); } $plainKey = $this->symmetricDecryptFileContent($privateKey,