Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hello,

 

I'm just about to build (hopefully) my registration form for my Yii project. I wasn't sure though if you use hash_hmac() and sha256 and just wanted to confirm that it returns a string of 40 characters? Is that right. Just so I can set my DB table to CHAR (40).

 

I take it the key can also be any length and combination of any kind of characters?

 

Thanks

 

Jonathon

Link to comment
Share on other sites

 Share

×
×
  • Create New...