Answer Posted / amit khanna
Decryption of the values is done with the decrypt helper. Observe the following lines of code -
use IlluminateContractsEncryptionDecryptException;
// Exception for decryption thrown in facade
try {
$decrypted = decrypt($encryptedValue);
} catch (DecryptException $e) {
//
}
Please note that if the process of decryption is not successful because of invalid MAC being used, then an appropriate exception is thrown.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the validations in laravel?
How do I perform dependency injection in laravel?
Where will you define laravel's facades?
What is boot method in laravel?
What is laravel and why it is used?
What is chunk in laravel?
Do you know what developed the laravel?
How to stop mysql on valet?
What is the boot method?
What is ssrf attack?
What is raw expression in laravel?
What do you mean by horizon in laravel 5?
What is query scope?
explain how to add a middleware in route group?
Why we use csrf token in laravel?