Xref: utzoo comp.unix.wizards:25025 comp.lang.c:38517 comp.unix.questions:30583 sci.crypt:4532 comp.unix.xenix.sco:2274 comp.unix.sysv386:7137 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!metro!cluster!necisa!nachi From: nachi@necisa.ho.necisa.oz.au (Nachiappan Muthu) Newsgroups: comp.unix.wizards,comp.lang.c,comp.unix.questions,sci.crypt,comp.unix.xenix.sco,comp.unix.sysv386 Subject: Re: New Login: need crypt Keywords: Login, crypt, SCO UNIX Message-ID: <2053@necisa.ho.necisa.oz.au> Date: 21 Apr 91 02:32:42 GMT References: <1991Mar27.082707.17385@logixwi.uucp> Organization: NEC Information Systems Australia Pty. Ltd. Lines: 27 jpm@logixwi.uucp (Jan-Piet Mens @ Logix GmbH, Wiesbaden) writes: > I am writing a new login which should have a few extras (any ideas ?) for > an SCO UNIX 3.2.2 machine. > Apart from the set_auth* stuff which I have found (omegod :-), there is a > crypt(3) routine in the shared library libc_s that only returns 13 > characters of encrypted password. > . . . . > Now the question: Does anyone know how it is done ? Do you have a free > version of crypt() that does that ? Is it somewhere in the archives ? There is a function called bigcrypt available in /lib/libprot.a in SCO UNIX which is capable of crypting passwords of length more than 13. Actually bigcrypt() uses crypt() internally. The syntax for bigcrypt() is exactly the same as crypt(), just replace crpyt() in your program by bigcrypt(). It works, but don't ask me how ? Please do not forget to link libprot.a as well as libc_s.a Have fun ! -- * Nachiappan Muthu nachi@necisa.ho.necisa.oz.au * 11/2 Francis St Ph. +61 2 550 8559 (Off) * Marrickville - NSW 2204 +61 2 559 1827 (Res) * Australia