iam trying to open an encrypted password and i know the correct password, and its says that :
rarfile.BadRarFile: Failed the read enough data: req=592 got=0
here is the code iam using
from rarfile import RarFile
with RarFile('daisy.rar', 'r') as myrar:
myrar.extractall(pwd='@Daisy_Cloud')
but iam getting and error rarfile.BadRarFile, and i think its related to encrypted file names when encrypting the rarfile because the same code works when i don't encrypt filenames
You can use rarfile python module.
The
rarfilelibrary requires external tool like :unrar (preferred), unar or bsdtarYou can install unrar using system package managersudo apt-get install unrarAssuming you have a debian based distro.