MCPcopy Index your code
hub / github.com/dataease/SQLBot / aes_decrypt

Function aes_decrypt

backend/apps/datasource/utils/utils.py:14–19  ·  view source on GitHub ↗
(encrypted_data)

Source from the content-addressed store, hash-verified

12 return base64.b64encode(encrypt)
13
14def 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')

Callers 12

delete_dsFunction · 0.90
previewFunction · 0.90
updateNumFunction · 0.90
get_table_obj_by_dsFunction · 0.90
get_uriFunction · 0.90
get_engineFunction · 0.90
check_connectionFunction · 0.90
get_versionFunction · 0.90
get_schemaFunction · 0.90
get_tablesFunction · 0.90
get_fieldsFunction · 0.90
exec_sqlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected