# Hello World program in Python import hashlib hash_string = "somestring\n" hash = hashlib.sha1() hash.update(hash_string.encode('utf-8')) print (hash.hexdigest());
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more