On Tue, Apr 20, 2010 at 1:38 PM, Peter Otten <__pete...@web.de> wrote: > luca72 wrote: > >> Hello i have to do this : >> glibc crypt() function, using salt $1$abcdefgh$ >> >> cryptPw = crypt(plainPw, "$1$abcdefgh$") >> >> I can do it in python, with package i need? >> Thanks > >>>> import ctypes >>>> lib = ctypes.CDLL("libcrypt.so.1") >>>> crypt = lib.crypt >>>> crypt.restype = ctypes.c_char_p >>>> crypt("password", "$1$abcdefgh$") > '$1$abcdefgh$G//4keteveJp0qb8z2DxG/' > > Is that what it's supposed to return? > > Peter
Seems like my posts are dropping off of the net all of a sudden. In case this didn't go through the first time... http://docs.python.org/py3k/library/crypt.html#module-crypt Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list