Generate and store salt for password encryption