Skip to content

Instantly share code, notes, and snippets.

View Sen-Zhang's full-sized avatar
🎯
Focusing

Sen Sen-Zhang

🎯
Focusing
View GitHub Profile
@Sen-Zhang
Sen-Zhang / aes_cipher.py
Created October 11, 2018 00:49
AES Cipher in Python
import base64
import hashlib
from Crypto.Cipher import AES
from django.conf import settings
AES_BLOCK_SIZE = 16
AES_KEY = settings.SECRET_KEY[:32]
AES_MODE = AES.MODE_CBC
{
"id": 720,
...
"formset_definition": {
"id": "253bc5fb-9d73-4d01-ab77-f459ed4ac0c0",
"name": "Greedo",
"version": 0,
"publisher_id": ...,
"published": True,
"created_at": "2019-08-05T18:14:06.775079Z"
@Sen-Zhang
Sen-Zhang / deep-copy-list-with-random-pointer.png
Last active August 23, 2021 19:28
deep copy list with random pointer
deep-copy-list-with-random-pointer.png