finish encrypted download and upload