key_size Property
Returns the cryptographic key size in bytes.
Syntax
def get_key_size() -> int: ...
key_size = property(get_key_size, None)
Default Value
0
Remarks
Use this property to read the cryptographic key size. For the majority of the symmetric algorithms this is hard-coded in the algorithm itself (such as 16 bytes for AES128), but may be variable for certain exceptions, such as Blowfish or RC4.
This property is read-only.