Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.4 : The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths

It is Laravel 5.4 setup of my web app. one thing is happening repeatedly on page load. and because of that, I am not able to get data on my page.

Runtime exception: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

Got this error repeatedly

I would be thankful for any help.

like image 796
Hardika Satasiya Avatar asked Jun 15 '17 10:06

Hardika Satasiya


People also ask

What is AES 128 CBC encryption?

aes stands for advanced encryption service, 128 is the bit rate, and CBC is the mode of encryption. However, this is recited and used only in OPEN SSL Formats.

What is the difference between AES 256 CBC and AES 256 GCM?

AES-CBC only performs a XOR between the block encrypts, and XOR's are so fast that the overhead should be negligible. AES-GCM however consists of counter (CTR) mode & GMAC calculations. CTR uses a 128-bit counter (negligible) and a XOR. However, the GMAC will have to be performed on top of that.

What is AES-CBC 256?

What is 256-bit AES encryption? 256-bit AES encryption refers to the process of concealing plaintext data using the AES algorithm and an AES key length of 256 bits. In addition, 256 bits is the largest AES key length size, as well as its most mathematically complex. It is also the most difficult to crack.

Does AES support CBC?

CBC (short for cipher-block chaining) is a AES block cipher mode that trumps the ECB mode in hiding away patterns in the plaintext. CBC mode achieves this by XOR-ing the first plaintext block (B1) with an initialization vector before encrypting it.


1 Answers

I think you should try this

run this command

php artisan key:generate

and the clear config cache using

php artisan config:cache
like image 195
AddWeb Solution Pvt Ltd Avatar answered Oct 21 '22 05:10

AddWeb Solution Pvt Ltd