Crypt module

I am using the crypt module here, which is
a one-way hash function based upon a modified DES algorithm. You can easily adjust the script to crack secure hash algorithms (SHA1,
SHA224, SHA256, SHA384, and SHA512 (defined in FIPS 180-2) as well as RSA’s MD5
algorithm ) by using the hashlib module.

Crypt Overview

import cryptcrypt.crypt("user", "AD")

'AD5Qg2vQhsLRw'

AD is the salt, which is a random two-character string which will be used
to perturb the DES algorithm in one of 4096 ways.