PDA

View Full Version : Password length restriction


wxman
8th November 2009, 03:08
I was wondering if there is any restrictions on password length? I ask because I set up a new FTP user, but the login kept failing. The user's password was a random 20 character password. After I shortened it to 15 characters, I could log in.

till
8th November 2009, 15:48
I'am not aware of such a restriction in the crypt implementation in php.

wxman
8th November 2009, 17:08
Could there possibly be any of the typical ASCII characters that could mess up a password?

till
9th November 2009, 12:00
Thats possibe. Have you tried if e.g. a password containing just 20 times the character "a" works?

wxman
9th November 2009, 17:03
Thats possibe. Have you tried if e.g. a password containing just 20 times the character "a" works?

I just tried an FTP password of 30 "a" and it worked. I don't know if I have the patience to go through all the ASCII characters to find which one it didn't like.