Encryption¶
The META-INF/encryption.xml file, holding information about encrypted/obfuscated assets.
-
class
yael.encryption.
Encryption
(internal_path=None, obj=None, string=None)[source]¶ Build the META-INF/encryption.xml file or parse it from obj or string.
-
add_enc_data
(enc_data)[source]¶ Add the given <enc:EncryptedData>.
Parameters: item ( yael.encdata.EncData
) – the <enc:EncryptedData> to be added
-
add_enc_key
(enc_key)[source]¶ Add the given <enc:EncryptedKey>.
Parameters: item ( yael.enckey.EncKey
) – the <enc:EncryptedKey> to be added
-
adobe_obfuscated_assets
¶ The list of internal paths of assets obfuscated with the Adobe algorithm.
Return type: list of str
-
encrypted_datas
¶ The <enc:EncryptedData> children.
Return type: list of yael.encdata.EncData
-
encrypted_keys
¶ The <enc:EncryptedKey> children.
Return type: list of yael.enckey.EncKey
-
idpf_obfuscated_assets
¶ The list of internal paths of assets obfuscated with the IDPF algorithm.
Return type: list of str
-