Description


Return a sha1 object from which a digest can be created.

Parameters


Returns


Example


    digest = util.sha()
    for word in ['foo', 'bar']:
        digest.update(word)
    print digest.hexdigest()


Notes


This exists to encapsulate the differences between pre Python 2.5 hash handling and post 2.5.