Renamed id of the hash algorithm from 'sha-1' to 'sha1' for compatiblity with openssl.
Hash is now calculated in 1MB chunks. Fixes #32.