ruby stdlib for SHA1 encoding

This uses the ruby stdlb for encoding SHA1 contents, the previous code actually required a third party gem which wasn't even documented. This will work on most ruby installations out of the box AFAIK.