Skip to content

Commit

Permalink
Mark method as deprecated
Browse files Browse the repository at this point in the history
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit ef31396)
  • Loading branch information
CarlSchwan committed Dec 5, 2022
1 parent c8e054f commit c509273
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private function hashToken(string $token): string {
}

/**
* @depreacted Fallback for instances where the secret might not have been set by accident
* @deprecated Fallback for instances where the secret might not have been set by accident
*/
private function hashTokenWithEmptySecret(string $token): string {
return hash('sha512', $token);
Expand Down
1 change: 0 additions & 1 deletion lib/private/Security/Crypto.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ public function decrypt(string $authenticatedCiphertext, string $password = ''):
// Retry with empty secret as a fallback for instances where the secret might not have been set by accident
return $this->decryptWithoutSecret($authenticatedCiphertext, '');
}

throw $e;
}
}
Expand Down

0 comments on commit c509273

Please sign in to comment.