MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / decrypt

Method decrypt

backend/app/models/tool/authentication.py:78–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 # logger.debug("------------------- Encryption End -------------------")
77
78 def decrypt(self):
79 # logger.debug("------------------- Decryption Start -------------------")
80 # logger.debug(f"Before decryption: {self.model_dump_json()}")
81
82 if not self.encrypted or self.type == ActionAuthenticationType.none:
83 return
84 if self.secret is not None:
85 self.secret = aes_decrypt(self.secret)
86 if self.content is not None:
87 for key in self.content:
88 self.content[key] = aes_decrypt(self.content[key])
89 self.encrypted = False
90
91 # logger.debug(f"After decryption: {self.model_dump_json()}")
92 # logger.debug("------------------- Decryption End -------------------")
93
94 def to_display_dict(self):
95 if self.encrypted:

Callers 2

buildMethod · 0.95
aes_decryptFunction · 0.45

Calls 1

aes_decryptFunction · 0.90

Tested by

no test coverage detected