fixed output to a file, using hash sums with geting key from a folder