Security

OTPHop moves the texts of your phone to your browser through a relay server. This page states what the product does, what the relay can and cannot see, and what the design does not cover.

How a code travels

  1. The browser creates a random channel id and a key pair: a private key and a public key. The private key stays in the browser's own storage.
  2. The extension shows the channel id and the public key in a QR code. You scan it with the phone app. The QR code holds no secret key.
  3. When a new SMS arrives, the phone encrypts the whole message and its sender to the browser's public key. It posts the encrypted message to the relay. Only the browser's private key can decrypt it. With the "Messages with codes" setting, the phone does this only for an SMS that holds a one-time code.
  4. After you focus an empty code field, the browser asks the relay for new messages every 2 seconds, for at most 3 minutes. It stops when the code is filled, you fill the field, or another code field gets focus. It does not poll when you have not focused a code field, except while the toolbar popup is open. The popup lists the texts it received.
  5. The browser decrypts the message and checks it. It fills a code into the focused field. It submits the form only if you turn on the optional "Submit after filling" setting. That setting is off by default.

The security model

  1. The phone sends each new SMS, with its sender, to your paired browsers. It always sends the whole message, never a bare code. The setting "Which messages" has two choices: "All messages" (the default) and "Messages with codes". With the second choice, other texts stay on the phone. The app never sends contacts.
  2. The app asks for four permissions. RECEIVE_SMS lets it see each new SMS as it arrives. INTERNET lets it send texts to the relay. REQUEST_IGNORE_BATTERY_OPTIMIZATIONS lets it show the system prompt that allows it to run in the background. ACCESS_NETWORK_STATE comes from Google's QR scanner library and only checks whether the phone is online. No camera permission. It cannot read the SMS inbox history.
  3. The browser creates a random channel id and a P-256 key pair. The QR code shows only the public key. The private key never leaves the browser.
  4. Each browser has its own channel and key. The phone encrypts each text once per paired browser.
  5. Every message is AES-256-GCM encrypted. The plain text holds the sender, the text of the SMS and the send time. The extension fills a code by itself only if it is less than 3 minutes old. A code 3 to 10 minutes old fills only when you click it. The extension rejects a code older than 10 minutes. It also rejects a code used before and any message that fails decryption.
  6. The relay deletes a ciphertext when the browser takes it. It keeps a message 24 hours at most. It logs no content.
  7. No accounts and no email sign-up. The server holds only these identifiers: a salted hash of the phone's Android ID (for the trial), a hashed device token, channel ids and the license key. For a Google Play purchase, the relay holds the Google Play purchase token and the order id in place of a license key. The relay uses the token to verify the purchase with Google and to check for refunds.
  8. The phone lists the recent texts it sent on its home screen. One switch, "Send texts to your browsers", pauses sending to all browsers. Each paired browser has a menu with Rename and Unpair.
  9. The app has an optional "Copy codes on this phone" switch, off by default. When it is on, each new code also goes to the clipboard of the phone, marked as sensitive. The app copies the code only, never the message. The copy stays on the phone and is not sent anywhere.
  10. The APK is signed with an offline key. Its SHA-256 and signing certificate fingerprint are on the download section.
  11. No analytics, telemetry, crash reporting or usage counters in the app, the extension or the relay. OTPHop does not count your codes.

Encryption details

  • Key exchange: ECDH on P-256 with a new phone key pair for each message. HKDF-SHA256 derives the message key.
  • Cipher: AES-256-GCM, with a random 12-byte IV and a 128-bit tag for each message.
  • The channel id is bound to each message as additional authenticated data.
  • The plain text is a small JSON object with the sender, the SMS text cut to 1000 characters and the send time in unix seconds.
  • The browser also rejects a code that is not 4 to 10 letters or digits, or that is dated more than 60 seconds in the future.
  • A message holds a one-time code only when its text has an OTP word, such as otp, code, verify, password, passcode, pin or one-time. The setting "Messages with codes" uses this test on the phone.

What the relay holds

ItemHeld by the relay
SMS text, sender and codeOnly as ciphertext, until the browser takes the message and for 24 hours at most. The relay cannot read them.
Private keyNever. It stays in your browser.
ContactsNever. The phone does not send them.
IdentifiersA salted hash of the phone's Android ID (for the trial), a hashed device token, channel ids and the license key or, for a Google Play purchase, the purchase token and the order id. There are no accounts and no email sign-up.
Last code timeThe time of the last code for each paired browser, so the popup can show it. It is deleted with the channel when you unpair.

What this does not cover

  • A person who photographs the QR code cannot decrypt your codes. The QR code does hold the channel id, so that person can unpair the browser. Resetting the browser pairing creates a new channel and a new key pair.
  • Like any server, the relay sees the network address of each request, and it sees when messages arrive and how large they are. It cannot read their content.
  • A phone or a browser that carries malware can read the code before OTPHop does. OTPHop does not protect against that.
  • A code that the extension fills is a code on your screen. Treat it as you would a code you typed.

What you can check

  • The source code is not public. Trust rests on the design above and on the checks below.
  • Each APK release lists its SHA-256 hash and signing certificate fingerprint in the download section. Compare them with the file you downloaded before you install it.
  • The phone app lists the recent texts it sent. It has one switch that pauses sending to all browsers, and a menu with Rename and Unpair for each browser.

Report a problem

Email support@otphop.com with the details of a security problem. We review each report sent to that address.