Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crypt? better alternatives? 1

Status
Not open for further replies.

parkers

Vendor
Joined
Oct 21, 2002
Messages
157
Location
GB
Hi,

Does anybody know of any better alternatives to the crypt function ... i.e. anything which allows passwords of > 8 characters?

(and how / where I'd get it?)

Any help appreciated.

Thanks...
 
What problems are you having with crypt? Maybe a more detailed 'here is my problem' would be a better place to start.
 
Does crypt not work with more than 8 characters?

Duncan
 
parkers,
As siberian said more information would help.

How you define passwords can make a big difference. If you mean passwords that are stored in /etc/shadow (or equiv) on unix machines, generally you have no choice as the passwords are generally encrypted via crypt. That means everything that relies on a password (i.e. login, su, passwd, etc.) will not work if you muck with them outside of using crypt.

Now on the other hand if you are writing your own password protected system, then I'd use Crypt::MD5. MD5 checksums would server the same purpose and don't have the 8 character limit that crypt does. Many newer version of unices have the ability to authenticate via MD5 checksums eiher with PAM or LDAP.

Hope that helps.
 
Hi,

I wasn't really having any issues with crypt just a bit frustrated by the 8 character limitation.

Anyway I pulled down Crypt::PasswdMD5 from CPAN and it doesn't appear to have the same limitation.

Thanks for the help provided...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top