At least in the US, employers aren't allowed to keep you from disclosing your compensation.
BTW, I would probably suggest qualifying the income by location to set the context. SV pay isn't always, e.g., Boise, ID pay.
At least in the US, employers aren't allowed to keep you from disclosing your compensation.