key_length Property
The desired length in bits of the derived key.
Syntax
def get_key_length() -> int: ... def set_key_length(value: int) -> None: ...
key_length = property(get_key_length, set_key_length)
Default Value
1024
Remarks
This property specifies the length in bits of the key.
The provided value must be divisible by 8. The default value is 1024.
Note: When version is set to PBKDF1 certain restrictions apply. When algorithm is set to MD5 the maximum length is 128. When algorithm is set to SHA1 the maximum value is 160.