Decrypt/Encrypt Function #35777
Answered
by
veelasky
Kaesewuerfel
asked this question in
General
-
How ist laravel decrypting and encrypting my strings? |
Beta Was this translation helpful? Give feedback.
Answered by
veelasky
Jan 5, 2021
Replies: 1 comment
-
what do you mean by how? if you refer to the usage (on how to use them), see documentation use Illuminate\Support\Facades\Crypt;
// encrypt string to hash
Crypt::encryptString($string);
// decrypt encrypted to the original
Crypt::decryptString($encryptedValue); But if you interested to on how it works, you can always go to the source code here. TLDR; Laravel use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Kaesewuerfel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what do you mean by how?
if you refer to the usage (on how to use them), see documentation
But if you interested to on how it works, you can always go to the source code here.
TLDR; Laravel use
openssl_encrypt()
andopenssl_decrypt() respectively to generate encrypted string, with the default cipher
AES-128-CBC`