/
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
Crypto
/
Hash
/
/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Hash
mkdir
upload
Name
Size
Mode
Actions
hashalgo.py
3984
0644
edit
dl
rm
hashalgo.pyc
3977
0644
edit
dl
rm
hashalgo.pyo
3977
0644
edit
dl
rm
HMAC.py
7302
0644
edit
dl
rm
HMAC.pyc
6201
0644
edit
dl
rm
HMAC.pyo
6201
0644
edit
dl
rm
MD2.py
2734
0644
edit
dl
rm
MD2.pyc
2182
0644
edit
dl
rm
MD2.pyo
2182
0644
edit
dl
rm
MD4.py
2716
0644
edit
dl
rm
MD4.pyc
2169
0644
edit
dl
rm
MD4.pyo
2169
0644
edit
dl
rm
MD5.py
2863
0644
edit
dl
rm
MD5.pyc
2216
0644
edit
dl
rm
MD5.pyo
2216
0644
edit
dl
rm
RIPEMD.py
3005
0644
edit
dl
rm
RIPEMD.pyc
2409
0644
edit
dl
rm
RIPEMD.pyo
2409
0644
edit
dl
rm
SHA.py
2841
0644
edit
dl
rm
SHA.pyc
2201
0644
edit
dl
rm
SHA.pyo
2201
0644
edit
dl
rm
SHA224.py
2851
0644
edit
dl
rm
SHA224.pyc
2257
0644
edit
dl
rm
SHA224.pyo
2257
0644
edit
dl
rm
SHA256.py
2852
0644
edit
dl
rm
SHA256.pyc
2257
0644
edit
dl
rm
SHA256.pyo
2257
0644
edit
dl
rm
SHA384.py
2853
0644
edit
dl
rm
SHA384.pyc
2257
0644
edit
dl
rm
SHA384.pyo
2257
0644
edit
dl
rm
SHA512.py
2850
0644
edit
dl
rm
SHA512.pyc
2257
0644
edit
dl
rm
SHA512.pyo
2257
0644
edit
dl
rm
_MD2.so
29811
0755
edit
dl
rm
_MD4.so
33767
0755
edit
dl
rm
_RIPEMD160.so
38725
0755
edit
dl
rm
_SHA224.so
33177
0755
edit
dl
rm
_SHA256.so
33177
0755
edit
dl
rm
_SHA384.so
33153
0755
edit
dl
rm
_SHA512.so
33153
0755
edit
dl
rm
__init__.py
2432
0644
edit
dl
rm
__init__.pyc
1668
0644
edit
dl
rm
__init__.pyo
1668
0644
edit
dl
rm
Edit:
/opt/alt/python27/lib64/python2.7/site-packages/Crypto/Hash/__init__.py
(2432B)
# -*- coding: utf-8 -*- # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone is granted a worldwide, perpetual, royalty-free, # non-exclusive license to exercise all rights associated with the # contents of this file for any purpose whatsoever. # No rights are reserved. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS # BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. # =================================================================== """Hashing algorithms Hash functions take arbitrary binary strings as input, and produce a random-like output of fixed size that is dependent on the input; it should be practically infeasible to derive the original input data given only the hash function's output. In other words, the hash function is *one-way*. It should also not be practically feasible to find a second piece of data (a *second pre-image*) whose hash is the same as the original message (*weak collision resistance*). Finally, it should not be feasible to find two arbitrary messages with the same hash (*strong collision resistance*). The output of the hash function is called the *digest* of the input message. In general, the security of a hash function is related to the length of the digest. If the digest is *n* bits long, its security level is roughly comparable to the the one offered by an *n/2* bit encryption algorithm. Hash functions can be used simply as a integrity check, or, in association with a public-key algorithm, can be used to implement digital signatures. The hashing modules here all support the interface described in `PEP 247`_ , "API for Cryptographic Hash Functions". .. _`PEP 247` : http://www.python.org/dev/peps/pep-0247/ :undocumented: _MD2, _MD4, _RIPEMD160, _SHA224, _SHA256, _SHA384, _SHA512 """ __all__ = ['HMAC', 'MD2', 'MD4', 'MD5', 'RIPEMD', 'SHA', 'SHA224', 'SHA256', 'SHA384', 'SHA512'] __revision__ = "$Id$"
Save
cmd:
run