| 1 |
MD2 |
| 2 |
=== |
| 3 |
|
| 4 |
MD2 is specified in RFC1319_ and it produces the 128 bit digest of a message. |
| 5 |
For example:: |
| 6 |
|
| 7 |
>>> from Crypto.Hash import MD2 |
| 8 |
>>> |
| 9 |
>>> h = MD2.new() |
| 10 |
>>> h.update(b'Hello') |
| 11 |
>>> print h.hexdigest() |
| 12 |
|
| 13 |
MD2 stand for Message Digest version 2, and it was invented by Rivest in 1989. |
| 14 |
|
| 15 |
.. warning:: |
| 16 |
This algorithm is not considered secure. Do not use it for new designs. |
| 17 |
|
| 18 |
.. _RFC1319: http://tools.ietf.org/html/rfc1319 |
| 19 |
|
| 20 |
.. automodule:: Crypto.Hash.MD2 |
| 21 |
:members: |