Hello i need some help in encrypting the config file of huawei B68A device similar to HG635 HGXX devices it depends on lzma compression and aes iv keys to encrypt and decrypt config file . i found a similar script to encrypt and decrypt the config files in python with the correct aes keys i am able to decrypt the config file if i comment the signature exit then the script will continue to decrypt without issue
if (actual_md5_hash == target_md5_hash):
print("Signature ok...")
else:
print("Signature not ok...continue")
#sys.exit(1)
the full code is here :
https://pastebin.com/JP3zMCtSthe problem is with the encryption method it does encrypt the config file but it is not accepted by the router . config file
b68a.conf : the original config file
enc-b68.conf : the encrypted config file using python script