Hi,
I've been reading kaisellgren blog on hashing and am trying to store some random binary data from /dev/urandom into the db. I read that mysql_real_escape_string() can be used to insert the data but read that it will get mallformed into the database?
How can I store the binary data so that it can be used to salt a password?
Storing binary data in mysql blob
Moderator: General Moderators
-
scatty1985
- Forum Newbie
- Posts: 24
- Joined: Fri Dec 18, 2009 8:57 am
- kaisellgren
- DevNet Resident
- Posts: 1675
- Joined: Sat Jan 07, 2006 5:52 am
- Location: Lahti, Finland.
Re: Storing binary data in mysql blob
It's the other way around: if you don't escape, you will get your data corrupted at some point. So escaping here is not just about security.