A document is encrypted or decrypted using a key.
A key always has a specified length.
Further information: