__init__ constructor

On this page

init

Initializes a symmetric 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

init

Initializes a symmetric algorithm with parameters and a default passphrase.

def __init__(self, algorithm_type, key):
    ...
Parameter Type Description
algorithm_type SymmetricAlgorithmType Encryption algorithm type
key str Encryption key

See Also

On this page