What is Decryption Process ?

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


Please Help Members By Posting Answers For Below Questions

Explain response in laravel.

426


What is the role of service provider?

398


What is eloquent orm?

453


Where do you locate route files?

403


Explain me active record implementation. How to use it laravel?

389






What is laravel framework?

437


Explain some benefits of laravel over other php frameworks.

391


What is eloquent?

445


How to bind a service container to a service provide.

373


How to generate a controller with resources in laravel?

398


What is namespace laravel?

427


What is singleton design pattern in laravel?

422


What is use of model in laravel?

403


What is gate in laravel?

446


How to set login page as default page in laravel?

405