use crypt functionpython lib of crypt:root@kali:~/dc# pythonPython 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import crypt>>> crypt.crypt("egg","HX")'HX9LLTdc/jiDE'>>> help('crypt')