added SHA1 hash function