1
# -*- test-case-name: twisted.python.test.test_hashlib -*-
2
# Copyright (c) 2008 Twisted Matrix Laboratories.
3
# See LICENSE for details.
6
L{twisted.python.hashlib} presents a subset of the interface provided by
7
U{hashlib<http://docs.python.org/library/hashlib.html>}. The subset is the
8
interface required by various parts of Twisted. This allows application code
9
to transparently use APIs which existed before C{hashlib} was introduced or to
10
use C{hashlib} if it is available.
15
_hashlib = __import__("hashlib")
18
from sha import sha as sha1
24
__all__ = ["md5", "sha1"]