converted update string parameter to buffer
Merge pull request #24 from facundoolano/digest_fix

converted hash.update string parameter to buffer