From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,796475790a1fc4c6,start X-Google-Attributes: gidfee84,public From: mskucher@vertex.tor.hookup.net (Murray S. Kucherawy) Subject: Password hashing format on Digtial UNIX Date: 1996/07/22 Message-ID: <4t04th$5fg@vertex.tor.hookup.net>#1/1 X-Deja-AN: 169473795 organization: HookUp Communication Corporation, Oakville, Ontario, CANADA nntp-posting-user: mskucher newsgroups: comp.unix.osf.osf1 Am I reading this right? It appears that the password hashing function under Digital UNIX writes its keys traditionally (key = userid, size = length of userid without trailing null), but the data format is really weird. Most systems apparently use this as the data: userid followed by NULL encrypted password followed by NULL uid in binary form, host byte order gid in binary form, host byte order gecos followed by NULL directory followed by NULL shell followed by NULL Writing a simple C program to look up my own entry in my active hash file, I'm seeing this: userid followed by NULL encrypted password followed by NULL uid in binary form, host byte order gid in binary form, host byte order four-byte zero (???) gecos followed by NULL directory followed by NULL shell followed by NULL What's the zero for? -- Murray S. Kucherawy ====================================== mskucher@hookup.net Vice-President, Software Services HookUp Communication Corporation (905) 847-8000 NIC Handle "MSK" Oakville, Ontario, CANADA -- EMACS: Eight Megs And Constantly Swapping --