diff options
| author | exislow <exislow@users.noreply.github.com> | 2025-07-03 09:57:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-03 09:57:26 +0200 |
| commit | 7da0d4c41e4abb6ec03ee1b0f64474ee970a230e (patch) | |
| tree | a5e625565e2439ad92c590f7f9d2aeaf49824fe9 /tidal_dl_ng/helper/decryption.py | |
| parent | 29ea5c51825628dbe96ce4404488b87d5fadb80d (diff) | |
| parent | 4662d18fdfc25d42d496cf6abb1c8d44be0c76dd (diff) | |
| download | tidal-dl-ng-7da0d4c41e4abb6ec03ee1b0f64474ee970a230e.tar.gz | |
Merge pull request #478 from exislow/ai-refactoring
Diffstat (limited to 'tidal_dl_ng/helper/decryption.py')
| -rw-r--r-- | tidal_dl_ng/helper/decryption.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tidal_dl_ng/helper/decryption.py b/tidal_dl_ng/helper/decryption.py index 17ea19b..2f38fc5 100644 --- a/tidal_dl_ng/helper/decryption.py +++ b/tidal_dl_ng/helper/decryption.py @@ -7,9 +7,17 @@ from Crypto.Util import Counter def decrypt_security_token(security_token: str) -> (str, str): """ - Decrypts security token into key and nonce pair + The `decrypt_security_token` function decrypts a security token into a key and nonce pair using AES + encryption. - security_token should match the securityToken value from the web response + Args: + security_token (str): The `security_token` parameter in the `decrypt_security_token` function is a + string that represents an encrypted security token. This function decrypts the security token into a + key and nonce pair using AES encryption. security_token should match the securityToken value from the web response. + + Returns: + The `decrypt_security_token` function returns a tuple containing the key and nonce extracted from + the decrypted security token. """ # Do not change this |
