[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More checkpassword woes / MD5
On Wed, May 22, 2002 at 12:34:50AM -0700, Grant Smith wrote:
> Hi again,
> Is there a way to FORCE checkpassword to NOT use MD5 ?
Checkpassword calls the standard crypt() routine, which comes with your
GNU/Linux or UNIX flavor. If your crypt() doesn't support it, it won't use
MD5 of course. You can easily check whether your password is MD5-encrypted:
if it starts with '$1$' and contains 35 characters, it's MD5-coded. If it
starts with '$1$' and contains less characters, then you have a problem.
> Alternatively, for mysql, what is the SQL syntax to convert the 13 character
> password column to 35 characters ?
alter table passwd modify colum password varchar(35);