(self)
| 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: |
no test coverage detected