title: store hashed passwords to Mysql
body: <p>I was researching about hashing and storing passwords to database on PHP.NET.
  This site said:</p>
  
  <p>If you are for example storing the data in a MySQL database remember that varchar fields automatically have trailing spaces removed during insertion. As encrypted data can end in a space (ASCII 32), the data will be damaged by this removal. Store data in a tinyblob/tinytext (or larger) field instead.</p>
  
  <p>which of this suggests are better? or may be I have to ask: Is one of them better? and if the answer is yes, which?
  and finally how should I store passwords to db using PDO. I thought I can write information to a blob row just like files, but if I get the values from input, which method or function have to used?
  Would you explain about please?</p>