The freezer.utils.crypt Module

class freezer.utils.crypt.AESCipher(pass_file)[source]

Bases: object

Base class for encrypt/decrypt activities.

AES256_KEY_LENGTH = 32
BS = 16
SALT_HEADER = 'Salted__'
class freezer.utils.crypt.AESDecrypt(pass_file, salt)[source]

Bases: freezer.utils.crypt.AESCipher

Decrypts chucks of data using AES-256 algorithm. OpenSSL compatible.

decrypt(data)[source]
class freezer.utils.crypt.AESEncrypt(pass_file)[source]

Bases: freezer.utils.crypt.AESCipher

Encrypts chucks of data using AES-256 algorithm. OpenSSL compatible.

encrypt(data)[source]
generate_header()[source]