Skip to content

Instantly share code, notes, and snippets.

View mcfoi's full-sized avatar

Marco Foi mcfoi

View GitHub Profile
@mcfoi
mcfoi / crypt.py
Last active March 2, 2023 09:58 — forked from fideloper/crypt.py
Decrypt Laravel-encrypted value
"""
Decode in Python a string encoded in Laravel 6.x
String ENCODED in Laravel 6.x with default pakage
Illuminate\Support\Facades\Crypt
and command like:
$encrypted = Crypt::encrypt('Hello world.');
Test in
php artisan tinker
>>use Illuminate\Support\Facades\Crypt;