def hash_with_sha224(string): hash = hashlib.sha224() string = string.encode('utf-8') hash.update(string) return hash