pad function with test
use hClose on handle
added directory + filepath to test, reformatting
sym encryption with correct iv