assert os.path.exists("sample.tar.gz.aes.0") # beginning of the tar file
assert os.path.exists("sample.tar.gz.aes.1") # first file
- os.system("openssl aes-256-cbc -k 'key' -d -in sample.tar.gz.aes.1 -out sample.tar.gz")
+ os.system("openssl aes-128-cbc -k 'key' -d -in sample.tar.gz.aes.1 -out sample.tar.gz")
os.system("zcat sample.tar.gz > sample.tar")
os.system("tar xf sample.tar")
assert os.path.exists("big")
# extract and check output
for i in xrange(1, 4):
fname = "sample.tar.gz.aes.%d" % i
- os.system("openssl aes-256-cbc -k 'key' -d -in %s -out sample.tar.gz" % fname)
+ os.system("openssl aes-128-cbc -k 'key' -d -in %s -out sample.tar.gz" % fname)
os.system("zcat sample.tar.gz > sample.tar")
os.system("tar xf sample.tar")