Skip to main content

Decrypt String

Description​

Decrypts string.

Function Signature:​

def decrypt_string(encrypted_base64_text: str, key: str) -> str:

Parameters​

  • encrypted_base64_text (str): Input value for encrypted_base64_text.
  • key (str): Input value for key.

Returns​

  • str: Return value from the function.

Example Usage​

# Example usage
encrypted_base64_text = "example"
key = "example"
result = decrypt_string(encrypted_base64_text, key)
print(result)

Behavior​

  • Executes the function logic with the provided arguments.
  • On success, returns the computed value or result object.

Error Handling​

  • Exceptions are handled within the function where implemented.