Jonathon Posted March 4, 2013 Share Posted March 4, 2013 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 More sharing options...
Larry Posted March 4, 2013 Share Posted March 4, 2013 64 characters long for SHA256(). And, right, doesn't matter the key length or characters used. Link to comment Share on other sites More sharing options...
Jonathon Posted March 5, 2013 Author Share Posted March 5, 2013 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts