Reply to Re: sha1 column type

Your name:

Reply:


Posted by Rik on 06/26/06 18:50

Marcus wrote:
> Hello,
>
> I have read several online tutorials advocating storing a sha1()
> hashed password in a column of type BLOB. As far as I can tell,
> sha1() always returns a string of 40 characters, regardless of the
> size of the original input. Is there any reason I can't store this
> as type CHAR? I am running MySQL 4.1.x. Thanks in advance.

NATIONAL] CHAR(M) [BINARY | ASCII | UNICODE]
A fixed-length string that is always right-padded with spaces to the
specified length when stored. M represents the column length. The range of M
is 0 to 255 characters.

Should be possible without any problems...

Grtz,
--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация