added padfile encryption