Python DES libraries

2.9k Views Asked by At

I am just wondering if there are any Python libraries out there that can help me implement DES. Maybe ones that can generate the sub keys or apply permutations.

Thanks.

1

There are 1 best solutions below

2
On

The pycrypto library is the de-facto encryption library for python. It supports encryption and decryption of DES blocks, however DES only supports passwords of 7 bytes in length, and is considered obsolete and insecure. You're better off using a newer encryption standard like AES.