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

What are the validations in laravel?

546


How do I perform dependency injection in laravel?

462


Where will you define laravel's facades?

502


What is boot method in laravel?

560


What is laravel and why it is used?

550


What is chunk in laravel?

570


Do you know what developed the laravel?

521


How to stop mysql on valet?

554


What is the boot method?

584


What is ssrf attack?

541


What is raw expression in laravel?

530


What do you mean by horizon in laravel 5?

543


What is query scope?

528


explain how to add a middleware in route group?

514


Why we use csrf token in laravel?

500