laravel encrypt decrypt

43

laravel encrypt decrypt -

# Searched for Laravel 5.8
# Check https://laravel.com/docs/5.8/encryption for different Laravel versions.
use Illuminate\Support\Facades\Crypt;

$encrypted = Crypt::encryptString('Hello world.');

$decrypted = Crypt::decryptString($encrypted);

encrypt & decrypt laravel -

use Illuminate\Support\Facades\Crypt;

$encrypted = Crypt::encryptString('Hello world.');

$decrypted = Crypt::decryptString($encrypted);

Comments

Submit
0 Comments