SHA1 hash rename multiple files

From: http://stackoverflow.com/questions/1841737/hashing-multiple-files