using the os x API for sha1