Generating hash in separated file