QNX4.25 password algorithm

Hi,
I am writing a photon based account administration tool to be used by
account administration staff to add and modify qnx accounts. (QNX
4.25).

Is there any library routine available to convert password text
strings into the encrypted text strings in the /etc/shadow file? I
would like for the administrators to be able to set a password.

Otherwise, I can always set a default password and let the users
change it–but this is somewhat less secure to my mind.

Any suggestions here? Thanks.

Greg Laird

Hello.

I believe that the function you are looking for is called crypt(). I
believe it has a prototype like:
char *crypt( const char *key, const char *salt );
I couldn’t find it in /usr/include, so I am not 100% sure. If you do a
search for crypt() on QNX’s site, I am sure that would be helpful.

Cheers.

Rodney

“Greg Laird” <glaird@teleport.com> wrote in message
news:3d10e6d5.55141440@inn.qnx.com

Hi,
I am writing a photon based account administration tool to be used by
account administration staff to add and modify qnx accounts. (QNX
4.25).

Is there any library routine available to convert password text
strings into the encrypted text strings in the /etc/shadow file? I
would like for the administrators to be able to set a password.

Otherwise, I can always set a default password and let the users
change it–but this is somewhat less secure to my mind.

Any suggestions here? Thanks.

Greg Laird

“Greg Laird” <glaird@teleport.com> wrote in message
news:3d10e6d5.55141440@inn.qnx.com

Hi,
I am writing a photon based account administration tool to be used by
account administration staff to add and modify qnx accounts. (QNX
4.25).

Greg,

The crypt function is included in unix3r.lib. There is a crypt package in
the qnx free stuff that has good sample code.

Roger