SymmetricEncryption class
Leave feedback
On this page
Implements standard symmetric algorithms for data encryption using a single key and passphrase (salt).
The SymmetricEncryption type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a symmetric encryption algorithm with the specified parameters. |
| init | Initializes a symmetric encryption algorithm with a default passphrase. |
| Method | Description |
|---|---|
| decode | Decrypts a string using the configured algorithm, key, and salt. |
| decode_file | |
| decode_string | |
| encode | Encrypts string based on provided algorithm type, key and salt parameters. |
| encode_file | |
| encode_string |
| Property | Description |
|---|---|
| algorithm_type | The type of symmetric algorithm. |
| key | The key of the encryption algorithm. |
| salt | The passphrase of the encryption algorithm. |
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.