Python Language algorithm provided by OpenSSL


A generic new() constructor that takes the string name of the desired algorithm as its first parameter also exists to allow access to the above listed hashes as well as any other algorithms that your OpenSSL library may offer. The named constructors are much faster than new() and should be preferred.

Using new() with an algorithm provided by OpenSSL:

>>> h ='ripemd160')
>>> h.update("Nobody inspects the spammish repetition")
>>> h.hexdigest()