Jump to content

Generating a Salt


Kevin M

Recommended Posts

I've heard it's a good idea to salt your encryptions that you get using md5 or sha1. I understand how to salt the encryption fine, that's not my question. This is my question:Should I just pick some random combination of numbers for my salt? I realize it would have to be the same on all pages and in the database, but I mean choosing a salt. Or would it be a good idea to sha1 or md5 a random phrase? I know that it's hard to get passed the php ecryption functions, but I want to have some uber security on my application.Thanks,Kevin

Link to comment
Share on other sites

Hi.. If am not wrong then you are talking about to generate your own random number to navigate site, yes if you can but it must strong and not predictable via try and error or any guess..Regards,Vijay

Link to comment
Share on other sites

Salts can help stop things such as rainbow tables if they got access to the hashes of your users. You can use one that you create a string/number/etc. that goes with all users, create a random string for each user, and one I read (pretty sure justsomeguy said this) was use information gained from the user such as date/time joined, or user id.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...