__init__ constructor
Leave feedback
On this page
Initializes a symmetric encryption algorithm with the specified parameters.
def __init__(self, algorithm_type, key, salt):
...
| Parameter | Type | Description |
|---|---|---|
| algorithm_type | SymmetricAlgorithmType |
Specify symmetric algorithm type |
| key | str |
Encryption key |
| salt | str |
Passphrase for encryption |
Initializes a symmetric encryption algorithm with a default passphrase.
def __init__(self, algorithm_type, key):
...
| Parameter | Type | Description |
|---|---|---|
| algorithm_type | SymmetricAlgorithmType |
Specify symmetric algorithm type. |
| key | str |
Encryption key. |
- class
SymmetricEncryption
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.