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 is an observer?
What is url in laravel?
What is laravel forge?
How auth is used?
What is kernel in laravel?
What are the Features of Laravel ?
What is meant by url in internet?
How to enable query log in laravel 5?
Explain service container?
What is name route in laravel?
Define hashing in laravel.
What is closure in laravel?
What is escaping a string?
What are the directory structure of laravel 5.8?
Why middleware is used in laravel?