MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / decrypt_3des

Function decrypt_3des

tianyi.py:67–71  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

65 return ciphertext.hex()
66
67def decrypt_3des(text):
68 ciphertext = bytes.fromhex(text)
69 cipher = DES3.new(key, DES3.MODE_CBC, iv)
70 plaintext = unpad(cipher.decrypt(ciphertext), DES3.block_size)
71 return plaintext.decode()
72
73def b64_rsa(plaintext):
74 public_key = RSA.import_key(public_key_b64)

Callers 1

get_ticketFunction · 0.85

Calls 2

unpadFunction · 0.85
decryptMethod · 0.45

Tested by

no test coverage detected