Operating System - HP-UX
1848190 Members
6451 Online
104022 Solutions
New Discussion

handle long password with HP_IA64

 
SOLVED
Go to solution
corne_1
New Member

handle long password with HP_IA64

Hello,

It seems crypt() in HP_IA64(Unix) can only encrypt 8 characters long
password, are there any ways to make it encrypt using in MD5 rather
than DES as the GNU crypt() can switch between the two algrorithms? If
not, what other way I can go to handle long password in HP_IA64?

Thanks very much!
5 REPLIES 5
Sameer_Nirmal
Honored Contributor
Solution

Re: handle long password with HP_IA64

Did you try using bigcrypt() ?
corne_1
New Member

Re: handle long password with HP_IA64

Thanks very much, do you think bigcrypt and crpyt generate the same encypted chars if the password is less than 8 chars.

Also in HP_UX, how can I change the makefile in
order to use bigcrypt().

Thanks again1

Sameer_Nirmal
Honored Contributor

Re: handle long password with HP_IA64

Yes, bigcrypt() follows the crypt() for password length of 8 characters or less.

crypt() and bigcrypt() are basically DES implementations on HPUX as you might knew. bigcrypt() has upper limit of 40 characters.

You can use "-lsec" with the makefile to use bigcrypt().
corne_1
New Member

Re: handle long password with HP_IA64

Hello Nirmal,
you are great, I tried it and it works, thanks very much!
jbean
New Member

Re: handle long password with HP_IA64

Could you supply a quick example on how to use bigcrypt in a short c program that can be called by a script?