Returns a SHA1 hash of a given plaintext