Provides a SHA1 function that uses node's crpyto module under the hood