Skip to content

Instantly share code, notes, and snippets.

@pwndad
pwndad / crypto.py
Last active October 14, 2020 12:36 — forked from rohitshampur/crypto.py
Mimic Java's PBEWithMD5AndDES algorithm to produce a DES key
import base64
from Crypto.Hash import MD5
from Crypto.Cipher import DES
try:
from Cryptodome.Util import Padding
except ImportError:
from Crypto.Util import Padding
_password = '111' #use your own pass key