Using The Encrypter: Encrypting Without Serialization

Use Illuminate\Support\Facades\Crypt;

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

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

Allows for encryption of objects and arrays.

Using The Encrypter: Encrypting Without Serialization — Structure map

Clickable & Draggable!

Using The Encrypter: Encrypting Without Serialization — Related pages: