A salary question both sides can answer honestly.

The job seeker enters the lowest salary they would accept. The employer enters the most it is prepared to pay. The Salary Box compares the two, tells the employer whether the job seeker's number is above or below its own, and discards the number.

  1. The employer enters$160,000

    This is the most it is prepared to pay for the role.

  2. The job seeker enters$150,000

    This is the lowest salary they would accept.

  3. The employer is toldBelow

    A deal is possible. The service has compared the two numbers and discarded the job seeker's.

See the full exchange, step by step
Employer its ceiling thesalarybox.com one secret key Candidate their minimum 1 sends its ceiling ($160,000) 2 returns a locator and a verify key 3 publishes the locator in the job posting 4 sends locator and minimum ($150,000) 5 returns a ticket sealed for the employer 6 submits the ticket with the application 7 reads below or above The service discards the minimum at step 5.
The locator is sealed with a key that only the service holds, so the candidate cannot read the ceiling from it. The ticket carries the answer to the employer, who reads it with its own key on its own machine.

How the salary question gets answered today

You are most of the way through a job application when a box asks for your salary expectations. Nearly everyone we have asked does the same thing next. They open Glassdoor or Blind in another tab and try to work out what the company pays, because the box feels like a question with a right answer.

The number they type is therefore a guess at the employer's budget. A guess that lands too high filters them out of a job they would have taken, and a guess that lands low sets the top of their own negotiation.

The employer gets a column of guesses at its own budget. Filtering on that column rejects people who would have said yes and passes people who never would have, and the employer finds out which was which when it makes an offer.

Why the real number is the best entry

If you are applying

Enter the lowest salary you would actually accept

With an ordinary salary field, the employer reads what you type and negotiates from it. Here the employer is told one thing, which is whether your number is above or below its ceiling.

A number higher than your real minimum can get you marked as over budget for a job that would have paid enough. A lower one can lead you into weeks of interviews for an offer you would turn down. Your real minimum is the entry that works in your favour.

The offer is negotiated afterwards in the usual way.

If you are hiring

Enter the most you are prepared to pay

You ask for salary expectations to avoid an interview cycle that ends at an offer the candidate was never going to accept. A salary field handles that poorly, because candidates answer it with a guess at your budget.

Here each application arrives marked above or below your ceiling. A candidate marked above stays in your queue, and you can still decide to stretch for someone exceptional.

You get one yes-or-no answer per candidate, and your ceiling decides what the question is. The most you are prepared to pay asks the useful one, which is whether a deal is possible.

Hiring can fail at three points. You may not find enough candidates worth interviewing. You may find them and be unable to win them, so that your offers are turned down. Or you may hire them and find that it does not last, because you regret the hire or they decide to leave. If none of these is happening to you, the salary question is working for you, and the Salary Box would add little. If any of them is, the question could well be working against you.

A job seeker gains nothing from any number other than their real minimum, and an employer gets more from its real ceiling than from any other number. Both sides can work this out about each other, so neither has to guess what the other will do.

What the service does with a number

The service is a gate in front of one secret key. This is the complete function that handles a candidate's number.

From gate.ts, which is part of the code this site is running
async bid(locator: string, minimum: number) {
  amount(minimum);
  const [kid, bb, sealed, extra] = locator.split(".");
  if (!kid || !bb || !sealed || extra !== undefined) throw new Error("bad locator");
  if (kid !== await this.keyId()) throw new Error("locator made under a different key");
  const raw = unb64(sealed);
  const pt = await crypto.subtle.decrypt(
    { name: "AES-GCM", iv: raw.slice(0, 12), additionalData: enc.encode(`${kid}.${bb}`) },
    await this.aes("decrypt"), raw.slice(12)); // throws if forged or altered
  const [listingId, ceiling] = JSON.parse(dec.decode(pt)) as [string, number];
  const nonce = crypto.getRandomValues(new Uint8Array(16));
  const tag = (await hmac(await this.verifyKeyFor(listingId),
    cat(nonce, Uint8Array.of(minimum <= ceiling ? 1 : 0)))).slice(0, 16);
  return b64(cat(nonce, tag)); // the minimum is gone when this returns
}

The function recovers the ceiling from the locator, compares the minimum with it, and signs the one-bit result with the employer's key. It then returns, and the minimum is discarded with it.

The service has no accounts and no sessions, and a request carries no name, email address or company. The one thing it writes is a running tally of listings created and numbers compared, which shows us how much the service is being used.

We built it this way because there is nothing here we would want to keep. A salary figure with no person attached is of no use to us, and storing it would take more machinery than comparing it.

What you can check for yourself

Everything that happens in your browser can be checked with its developer tools in about a minute, and the verification page shows how. For what happens on the server, you are relying on our statement that it runs the code published here.

Take the code

This site is a working demonstration, and its main purpose is to show how little there is to the idea. The protocol is one file of about eighty lines, and the code is released under the MIT License.

If you run a job board or an applicant tracking system, we would be glad to see you run it yourself under your own name. LinkedIn or Indeed could offer this to every employer on their platform, and nothing about it depends on us. Employers who want to try it today can add it to an application form, or to an existing system with a link and a text field.