I am passing the POST Id values through the URL like this
localhost:81/laravel/public/Application/1956458
So I would like to encrypt the Keys in the address bar. How can i achieve that?
I am passing the POST Id values through the URL like this
localhost:81/laravel/public/Application/1956458
So I would like to encrypt the Keys in the address bar. How can i achieve that?
There are some different ways to Encrypt your password,
1. Normal Encryption.
This is a strong AES encryption via the Mcrypt PHP extension,
$encrypted = Crypt::encrypt($id);
And also you can decrypt this encrypted values using this command,
$decrypted = Crypt::decrypt($encrypted);
2. Hashing A Password Using Bcrypt in Laravel.
This will create a hashed password. You may use it in your controller or even in a model.
$encrypted = Hash::make($id);
3. Direct Use Bcrypt.
In Laravel 5 you can directly encrypt the password using Bcrypt,
$encrypted = bcrypt($id);