import sys import crypt import readline password = raw_input('Password:') salt = password[:2] encrypted = crypt.crypt(password, salt) print encrypted