accept a Buffer to hash

I've written little util functions for this so often that it's something that should `npm install`able but I went looking to see if anyone else had done it in a nice way--yours is close enough but I mainly want to hash Buffer objects rather than files (usually for tests).
Whaddya reckon?