Can we add the support for the Crypt facade to use custom encryption keys? #40432
Unanswered
apoorvpal01
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I realise that
Illuminate\Encryption\Encrypter
can be used with the custom encryption key, but could we have it either as an optional argument forCrypt::encrypt(mixed $value, bool $serialize = true, string $key = null)
and then check if the$key
is null, it could default to the config app key? I would be happy to send a PR for this if it feels like a useful change to the other developers...Beta Was this translation helpful? Give feedback.
All reactions