SymmetricEncryption class

SymmetricEncryption class

Implements standard symmetric algorithms for data encryption using a single key and passphrase (salt).

The SymmetricEncryption type exposes the following members:

Constructors

Constructor Description
init Initializes a symmetric encryption algorithm with the specified parameters.
init Initializes a symmetric encryption algorithm with a default passphrase.

Methods

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

Properties

Property Description
algorithm_type The type of symmetric algorithm.
key The key of the encryption algorithm.
salt The passphrase of the encryption algorithm.

See Also