"When asked about salary I say that I consider my previous/current employer's salary information to be proprietary & confidential information and I would be violating the agreement I signed when I joined that company to keep such information private, by revealing it."
Such agreements are not allowed in California. It would be illegal and unethical for a company to ask you to sign it.