summaryrefslogtreecommitdiff
path: root/security/py-Des/DESCR
blob: ff9835362b32bd5a6994b6282cc6444d6cdc7cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
This is a pure python implementation of the DES encryption algorithm.
It is in pure python to avoid portability issues, since most DES
implementations are programmed in C (for performance reasons).

Triple DES class is also implemented, utilising the DES base. Triple DES
is either DES-EDE3 with a 24 byte key, or DES-EDE2 with a 16 byte key.
See the "About triple DES" section below more info on this algorithm.

The code below is not written for speed or performance, so not for those
needing a fast des implementation, but rather a handy portable solution
ideal for small usage.