PHP LARAVEL Web Security | Encrypt Decrypt String | Source Code

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey my name is a bass and in this video you will learn how you can use encryption and decryption in PHP level for this I have created a new project and I'm going to run the project through the command PHP artisan serve so the project is running now and let's have a look at the code so if you ever have noticed in the config folder you we have a app dot PHP file which have a key variable which is referring to the env file so let's open the env file to see where is the app key ok here is the app key and it has a security key which will be used for the encryption and decryption and this is a free security in level but if you don't have the key variable in your env file you can run this command PHP artisan key generate this will generate a key so now I need to make a new controller so I need to write the command PHP artisan make controller we can find this encrypt controller in app HTTP controller folder in the encryption controller we have to include the grip library for this i am reading used illuminate slash support slash Perseids slash grip and then I will create two methods one is the encrypt and the other is decrypt the include method will encrypt the text and addictive will indicate the text in the encrypt controller I have written a test message in the web or PHP we have to create two routes one for the encrypt and the other for decrypt and now I'll open the drop so this is the encrypted version of the string you can save this string in your database and if you need to decrypt the encrypted string to its written format you can use the decrypt string method thanks for watching this video I have also created a video on encryption decryption in core PHP if you liked this video give this video a big thumbs up and don't forget to share and subscribe my channel for more videos [Music] [Music]
Info
Channel: Ghulam Abbass
Views: 12,280
Rating: undefined out of 5
Keywords: development, ghulam, abbass, software, coding, learn, technology, web, website, mobile, upwork, skill, customer service, ghulam abbass
Id: Mx6giAoYdFc
Channel Id: undefined
Length: 3min 25sec (205 seconds)
Published: Fri May 15 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.