How to check where your number goes

The box on an application page is served by thesalarybox.com. Your number goes from the box to this site, and the company's page receives a ticket from the box once the comparison is done. A browser can show you both of these things, so you can check them for yourself.

The quick check

  1. In the box, click Open in its own window.
  2. Read the address bar of the new window. It should say thesalarybox.com and show the padlock. If the address has extra words in it or is spelled differently, close the window.
  3. Enter your number in that window. The token goes back to the application, and the window closes.

The new window shows the same box, and the address bar of a window always shows where its page really comes from.

The full check

This version uses the browser's developer tools and takes about a minute. It is the check an engineer or a journalist would run, and any one person running it would expose a box that claims to be thesalarybox.com and is served from somewhere else.

  1. On the employer's application page, open developer tools with F12, or by right-clicking and choosing Inspect.
  2. In the Elements panel, find the box. It should be an <iframe> whose src starts with https://thesalarybox.com/embed. If the box carries the thesalarybox.com name but is part of the employer's own page, or is framed from a different address, it is a forgery of this site.
  3. In the Network panel, enter a test number and press Seal it. The number should appear in exactly one request, which is a POST to https://thesalarybox.com/api/bid sent by the frame. No request sent by the employer's page should contain it.
  4. The employer's page receives one message from the frame, and the message carries a ticket of 43 characters that look random. If you enter the same number twice you get two different tickets, because each ticket is made from fresh random bytes and the result.

What you are relying on us for

The checks above cover everything that happens in your browser. What happens on our server is something we can describe and publish but that you cannot observe from outside. The server compares your number with the employer's ceiling, seals the answer for the employer, and discards the number. The function that does this is about a dozen lines long, and the site publishes the code it is running so that you can read all of it.

Why the comparison needs an operator

In some settings, cryptography can compare two private numbers with nobody in the middle, and it is fair to ask why this service does not work that way. The reason is that a salary is one of a small set of plausible numbers.

Suppose the job seeker left the employer something encrypted that the employer could compare with its ceiling by itself. The employer could then compare it with any other number as well. It would try one number, see the answer, halve the range and try again, and about twenty comparisons would give the job seeker's number to the dollar. The same is true in the other direction of anything that lets a job seeker test numbers against the ceiling and see the answers.

Keeping both numbers private therefore takes someone in the middle who makes one comparison for each number entered, passes the answer to the employer, and discards the number. That is the whole job of the operator. The trust it asks for is kept small by publishing the code, by keeping the operator's part to a few lines, and by leaving anyone free to run the protocol, so that job seekers can use an operator they already trust.

Other operators

Anyone is welcome to run this protocol under their own name, and we hope that job boards and applicant tracking systems will. A box run by another operator shows that operator's address in its header, and the same checks apply to it with that address in place of ours. The thing to look for is a mismatch between the name a box shows and the address it is served from.

If you find a box that shows the thesalarybox.com name and is served from a different address, or anything on this site that does not hold up, we want to know.