Minimum salary: $10,000 per year. Maximum salary: $1,000,000 per year. Legal compliance achieved, while still effectively maintaining confidentiality of salary info.
That range probably doesn't satisfy the requirements of the new law: The range must: "extend from the lowest to the highest salary the employer in good faith believes at the time of the posting it would pay for the advertised job, promotion or transfer opportunity."
So unless you can read minds, it'd be hard to prove that the employer doesn't believe this is the salary range.
And besides, 10K to 1M is a pedantically large range to illustrate this dynamic. Realistically a lot of companies could provide a range from $60K to $300K for software developers - both of these are salaries I can attest to firsthand. This isn't as stark as a 100:1 range, but a range of 5:1 is still a wide enough range such that expected salaries are still effectively unknown.