(text)
| 60 | ss.cookies.set_policy(BlockAll()) |
| 61 | |
| 62 | def 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 | |
| 67 | def decrypt_3des(text): |
| 68 | ciphertext = bytes.fromhex(text) |
no test coverage detected