salt-creation

(php) how to generate a random, long salt for use in hashing?

what is a way in php to make a random, variable length salt for use in hashing. let's say i want to make a 16-character long salt - how would i do it? ...

Salting a password - are there better options than using a timestamp?

I'm currently building a couple of ASP.NET MVC 2 sites, and am wondering what my options are for salting a password. With my PHP work, I usually just obtained the timestamp of when a user registered, then appended it to the end of their password string before using SHA1 to hash the entire thing. My instinct is that this approach may no...