Fix sha1 to copy data rather than trash it.
Use the underlying buffer from the string object.
Add a .gitignore.