-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use constant for supported formats #26323
Conversation
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
@@ -57,10 +57,20 @@ | |||
* @package OCA\Encryption\Crypto | |||
*/ | |||
class Crypt { | |||
public const SUPPORTED_CIPHERS_AND_KEY_SIZE = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does their visibility change all of a sudden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DEFAULT_CIPHER
and LEGACY_CIPHER
are also public, so IMHO it makes sense to have the same visibility for all available ciphers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rullzer should I revert this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#26383 depends on this
asking @nextcloud/encryption for a second review 😃 |
Supported since PHP 5.6.