Current File : //usr/lib64/python2.7/site-packages/Crypto/Hash/SHA.pyc |
�
Bd\Rc @ s� d Z d Z d d d g Z d d l Td d l m Z y d d l Z e j Z Wn# e k
rs d d l
Z
e
Z n Xd e f d � � YZ d d
� Z
e j Z e j Z d S( s� SHA-1 cryptographic hash algorithm.
SHA-1_ produces the 160 bit digest of a message.
>>> from Crypto.Hash import SHA
>>>
>>> h = SHA.new()
>>> h.update(b'Hello')
>>> print h.hexdigest()
*SHA* stands for Secure Hash Algorithm.
This algorithm is not considered secure. Do not use it for new designs.
.. _SHA-1: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
s $Id$t newt digest_sizet SHA1Hashi����( t *( t HashAlgoNc B s>