(data)
| 5 | key = b'SQLBot1234567890' |
| 6 | |
| 7 | def aes_encrypt(data): |
| 8 | data = bytes(data,'utf-8') |
| 9 | cipher = AES.new(key, AES.MODE_ECB) |
| 10 | data = pad(data, AES.block_size) |
| 11 | encrypt = cipher.encrypt(data) |
| 12 | return base64.b64encode(encrypt) |
| 13 | |
| 14 | def aes_decrypt(encrypted_data): |
| 15 | encrypted_data = base64.b64decode(encrypted_data) |
no test coverage detected