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
Do you know what is method spoofing in laravel?
Difference between Authentication and Authorization ?
Explain important directories used in a common laravel application.
Explain php artisan?
What is meant by Controller Middleware ?
What are advantages of laravel?
When laravel was launched?
How do I see all defined routes?
How to use update statement in laravel?
Exceptions are handled by which class?
How to list all routes in laravel?
How to use cookies in laravel?
are you able to laravel create-project via composer, explain how?
In laravel, what is fillable attribute in a model?
What is a pull() ?