View crypt.py
import base64 | |
import json | |
from phpserialize import loads | |
import hashlib | |
import hmac | |
from Crypto.Cipher import AES | |
def decrypt(payload, key): | |
""" | |
Decrypt strings that have been encrypted using Laravel's encrypter (AES-256 encryption). |