- class usencrypt.cipher.Ciphertext(value=None, hexstr=None, mode='static')#
Abstract base class for encrypted objects.
value (any supported encryptable type) – The value to be encrypted. Defaults to
str) – The hexadecimal representation of the encrypted object. Defaults to
str) – The mode of encryption. Defaults to
usencrypt.cipher.Ciphertextis meant to be used as an abstract-only class, and is thus never created directly. This is handled by its sub-classes, which provide functions for various tasks with encrypted data.