The only thing keeping salaries secret can possibly achieve is paying people less than their peers (in the same company or the same industry).
In other counties salaries (or at least relatively narrow bands) are well known and the world hasn’t ended.
One of the things I was most proud of my time at Second Measure (and this is due to the cofounders) is that we had 11 “levels” for engineers and data scientists and everyone at a given level was compensated (pay and equity) exactly the same. If you figured out the level of someone on the team (and we were transparent about the criteria used for leveling) you could pretty much work out their comp by extrapolating from your own.
World didn’t end. People didn’t quit en mas. Some people left because they felt under compensated. They were wrong; they weren’t as good as they thought and I’m fine they decided to leave. (Some people also left because they got insanely good offers elsewhere and I genuinely congratulated them and wished them well).
Talk about your compensation with your coworkers. Then use that information to demand fair compensation.