In the US military, you could figure out exactly what anyone made, because it was based on a rank + tenure formula that did not have many exceptions. There was some regional stuff around housing allowances, hazard pay, etc, but that was also formula driven. The "secret" then, was about how to get promoted faster, and not what your pay was. Not that it's a solution for the private sector, but it was easy to understand.