added hash support
Merge pull request #4 from bekzod/hashes_bek

added optional hash support