MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / encrypt_3des

Function encrypt_3des

tianyi.py:62–65  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

60ss.cookies.set_policy(BlockAll())
61
62def encrypt_3des(text):
63 cipher = DES3.new(key, DES3.MODE_CBC, iv)
64 ciphertext = cipher.encrypt(pad(text.encode(), DES3.block_size))
65 return ciphertext.hex()
66
67def decrypt_3des(text):
68 ciphertext = bytes.fromhex(text)

Callers 1

get_ticketFunction · 0.85

Calls 2

encryptMethod · 0.80
padFunction · 0.50

Tested by

no test coverage detected