(encrypted_data)
| 12 | return base64.b64encode(encrypt) |
| 13 | |
| 14 | def aes_decrypt(encrypted_data): |
| 15 | encrypted_data = base64.b64decode(encrypted_data) |
| 16 | cipher = AES.new(key, AES.MODE_ECB) |
| 17 | text = cipher.decrypt(encrypted_data) |
| 18 | decrypted_text = unpad(text, AES.block_size) |
| 19 | return decrypted_text.decode('utf-8') |
no outgoing calls
no test coverage detected