implement password encryption for stored passwords