Xref: utzoo comp.unix.admin:1099 comp.unix.misc:1008 comp.unix.wizards:24267 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!mintaka!snorkelwacker.mit.edu!spool.mu.edu!uwm.edu!ogicse!emory!rigel!glenn From: glenn@rigel.econ.uga.edu (Glenn F. Leavell) Newsgroups: comp.unix.admin,comp.unix.misc,comp.unix.wizards Subject: Is the encrypted password's salt simply random? Message-ID: <1991Feb26.201846.22584@rigel.econ.uga.edu> Date: 26 Feb 91 20:18:46 GMT Sender: glenn@rigel.econ.uga.edu (Glenn F. Leavell) Followup-To: comp.unix.admin Organization: University of Georgia Economics Department Lines: 14 I'm writing a simple C program to encrypt passwords, so that I can call it from a shell script when generating new accounts. To generate the encrypted password, I'm making use of the crypt() function: char *crypt( char *password, char *salt ) I'm using a randomly generated two-character salt from the set [a-zA-Z0-9./], and everything seems to be working fine. Here's my question: is this the right way to choose the salt - just a random thing? Please follow-up to comp.unix.admin. Thanks in advance! -- Glenn F. Leavell Systems Administrator glenn@rigel.econ.uga.edu 404-542-3488 University of Georgia Economics Department. 147 Brooks Hall. Athens, GA 30602 Brought to you by Super Global Mega Corp .com