OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python2.7
/
dist-packages
/
Crypto
/
Hash
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/14/2020 08:39:38 AM
rwxr-xr-x
📄
HMAC.py
7.13 KB
05/24/2012 12:55:30 PM
rw-r--r--
📄
HMAC.pyc
5.91 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
MD2.py
2.67 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
MD2.pyc
2.06 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
MD4.py
2.65 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
MD4.pyc
2.04 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
MD5.py
2.8 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
MD5.pyc
2.09 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
RIPEMD.py
2.93 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
RIPEMD.pyc
2.28 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
SHA.py
2.77 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
SHA.pyc
2.07 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
SHA224.py
2.78 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
SHA224.pyc
2.13 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
SHA256.py
2.79 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
SHA256.pyc
2.13 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
SHA384.py
2.79 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
SHA384.pyc
2.13 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
SHA512.py
2.78 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
SHA512.pyc
2.13 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
_MD2.x86_64-linux-gnu.so
15.23 KB
04/03/2018 01:26:21 PM
rw-r--r--
📄
_MD4.x86_64-linux-gnu.so
15.29 KB
04/03/2018 01:26:21 PM
rw-r--r--
📄
_RIPEMD160.x86_64-linux-gnu.so
19.26 KB
04/03/2018 01:26:21 PM
rw-r--r--
📄
_SHA224.x86_64-linux-gnu.so
11.23 KB
04/03/2018 01:26:21 PM
rw-r--r--
📄
_SHA256.x86_64-linux-gnu.so
11.23 KB
04/03/2018 01:26:21 PM
rw-r--r--
📄
_SHA384.x86_64-linux-gnu.so
15.23 KB
04/03/2018 01:26:21 PM
rw-r--r--
📄
_SHA512.x86_64-linux-gnu.so
15.23 KB
04/03/2018 01:26:21 PM
rw-r--r--
📄
__init__.py
2.38 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
__init__.pyc
1.61 KB
10/14/2020 08:39:38 AM
rw-r--r--
📄
hashalgo.py
3.89 KB
10/14/2013 09:38:10 PM
rw-r--r--
📄
hashalgo.pyc
3.76 KB
10/14/2020 08:39:38 AM
rw-r--r--
Editing: __init__.py
Close
# -*- 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$"