Skip to content
On this page
On this page

Encrypted links and response encryption

For providers2.2.02.1.0Updated

Two independent tools. A wrabbit://crypt4/… link hides the subscription address from the subscriber — like Happ's happ://crypt4. age encryption hides the subscription response body from intermediaries: CDNs, proxies and their logs. Use either or both.

#crypt4 link: hide the subscription addressFree

The link carries the subscription address encrypted with the Wrabbit public key. Only the Wrabbit app can decrypt it, in both versions — 2.2.0 and 2.1.0. The subscriber adds the subscription but never sees its address with the token: not in the list, Subscription check or the exported logs. Hiding the address is free.

  1. #Save the public key

    There is one key for all providers. Save it as wrabbit-crypt4.pem next to your script or bot.

    wrabbit-crypt4.pemtext
    -----BEGIN PUBLIC KEY-----
    MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAoWqe1ebtnqNT+Z+6oBEw
    E9RTGhUm9djjSi1Sc+tEAtWt4wPSDQlnWeyIpdBvk/ZWHA6cv7niNR3LY2mXjc87
    sRcxV5GPSnkykVyZcS3/I4Cw/0wxUgubp/8JoQqB/pZRlUrL5mqmCFKpnoEzNNMG
    ErJeCiKYrGQkgspjORiz7eM2NDOixGMW/8tnz5jjX8DnRNKT0JA2+3GGe5MPDdY9
    ZqxLwQLatHVe9nUpdZj0p8Lvv7HglgMARHrHlSIFw93sRKBRm/SUG3FIGH3lAoaF
    wlGUB/pNM4SfU2+h6LEuCHG3mcbxyII2Z/+CaujDCxwKGFcuhN8xLGwuqhYM6Jcn
    +tdMEUgVBa37pvt3RPGHE85pdOrL010iIzd+RBTr5SGeNFQdoHtlQurf/iuYKnDD
    vcZQUiyVZEXks1l6jNEv+9YXlpnSuiGFeqzUdJoGyLhUiW7uS7HZ2+9kSTgQ0Pef
    KLXA9pKMogHwQ5JdCvm+2GxmjzJ/s1nTn3F51eycFThY3eZ+IDuZrhdyy//rYMzh
    JGZJfeQdcy9Oe80JFdrHPlcOKYZn+aQNEFc3bRMMV+1Vs5+fpNF1Aw0cENhqZ31o
    qYwpQ54l0uDYFbOB6nqauld8n1oiYc4AzQf07BGxmUF4hgv6GbECRwS/NP1P1umN
    Z0dwo4FJDLLx3DSMRdYyVM8CAwEAAQ==
    -----END PUBLIC KEY-----
    
  2. #Encrypt the subscription address

    Encrypt the subscriber's full subscription address, up to 501 bytes. The Remnawave subscription page has no ready template for Wrabbit, so your bot or account page builds the link — per subscriber.

    OpenSSL

    OpenSSL 3 or LibreSSL on macOS. The command prints a ready link:

    Terminalbash
    printf '%s' 'https://YOUR-DOMAIN/<SHORT_UUID>' \
      | openssl pkeyutl -encrypt -pubin -inkey wrabbit-crypt4.pem \
      | openssl base64 -A | tr '+/' '-_' | tr -d '=' \
      | sed 's|^|wrabbit://crypt4/|'
    

    Node.js

    The built-in node:crypto module, no dependencies:

    crypt4.mjstext
    import { publicEncrypt, constants } from "node:crypto";
    import { readFileSync } from "node:fs";
    
    const key = readFileSync("wrabbit-crypt4.pem", "utf8");
    
    export function wrabbitCrypt4(subscriptionUrl) {
      const blob = publicEncrypt(
        { key, padding: constants.RSA_PKCS1_PADDING },
        Buffer.from(subscriptionUrl, "utf8"),
      ).toString("base64url");
      return `wrabbit://crypt4/${blob}`;
    }
    

    Encryption is randomised: the same address gives a new link every time, and all of them work. No need to store links — build one when you hand it out.

  3. #Give the link to the subscriber

    As a button or link in your bot or email, or as a QR code. The subscriber can also paste it into Wrabbit: “+” → paste from clipboard. Wrabbit shows a confirmation window with the name from profile-title; without it the subscription gets a neutral name — “Subscription”.

  4. #Check on a phone

    Open the link on a device with Wrabbit: the subscription is added and its address is nowhere to be seen. The error “Couldn’t decrypt the link” means the link was cut or encrypted with another key.

#Are server details hidden

What is hidden2.2.02.1.0
Subscription address with the tokenalways Freealways
Domain in the confirmation windowhidden if the host from the link answered itself with a valid license; otherwise shown, as protection against spoofing—
Server addresses, keys, QR and copyingonly with the hide license of the subscription hostalways

In 2.2.0 server details are hidden when the subscription response comes with your license that includes hide. It is sticky: if the license later disappears, details are not revealed. To hide details for subscriptions added with a regular link too, use hide-settings — Headers reference.

How it differs from Happ and INCY encrypted links
Wrabbit crypt4Happ, INCY crypt*
Who opens itWrabbit onlytheir own app only
Keythe Wrabbit public key aboveHapp or INCY keys
Does Wrabbit open Happ and INCY links—no: Wrabbit asks for a regular link or wrabbit://crypt4
Link format
  • Cipher: RSA-4096 with PKCS#1 v1.5 padding. The plaintext is the subscription address in UTF-8, no more than 501 bytes.
  • Encoding: base64url without trailing =. The client also accepts standard base64 and percent-encoding.
  • Forms: wrabbit://crypt4/<blob> and wrabbit://import?crypt=<blob>; the wrab:// scheme is a synonym.
  • The format is transitional: one shared key with no key number. A format with a key number will replace it — we will announce the switch in advance, and existing links keep working in versions that understand them.
  • The private key exists only in the app. This hides the address; it does not protect a secret: the key can be extracted from the app, as with Happ.

#age response encryption2.2.0

Remnawave 2.8+ can encrypt the subscription response body with an age key right in the response rule (the encryption field). Wrabbit 2.2.0 tells the panel in the x-wrabbit-decrypt header which keys it can decrypt, and gets an encrypted body only when it has said so itself.

  1. #Get the rules in the account

    Provider account → «Подключение» (Connection): set the panel version to «2.8 и новее» (2.8 and newer) and turn on «Шифровать ответ для Wrabbit (age)» (encrypt the response for Wrabbit). Optionally «Добавить постквантовый ключ (age1pq1)» (add a post-quantum key): a separate rule above X25519, with a key of about 2 KB issued by the account. The account builds the rules with your token. This is the X25519 rule:

    Remnawave → Response Rules → rulesJSON
    {
      "name": "Wrabbit age w1",
      "enabled": true,
      "operator": "AND",
      "conditions": [
        { "headerName": "user-agent", "operator": "REGEX", "value": "^Wrabbit/", "caseSensitive": true },
        { "headerName": "x-wrabbit-decrypt", "operator": "CONTAINS", "value": "age1=w1;", "caseSensitive": true }
      ],
      "responseType": "XRAY_JSON",
      "responseModifications": {
        "headers": [
          { "key": "wrab-license", "value": "<WRAB_LICENSE>" },
          { "key": "x-wrabbit-rule", "value": "v1;rule=age;mode=compat;kid=w1" }
        ],
        "applyHeadersToEnd": true,
        "additionalExtendedClientsRegex": ["^Wrabbit/"],
        "encryption": { "method": "age1", "key": "age15geqrglkk6nwgdag7g4lytkr04suyw7auuh04m32hc64tjlzdaaskzns5a" }
      }
    }
    
    • The x-wrabbit-decrypt condition must be CONTAINS: the client sends a list like age1pq1=w2;age1pq1=w1;age1=w2;age1=w1;, so equality never matches. The trailing ; keeps w1 from matching w10.
    • x-wrabbit-rule with rule=age is a marker: it tells the client the response must be encrypted.
  2. #Put the rules above the open Wrabbit rule

    Order right after “Browser Subscription”: the post-quantum rule (if any) → Wrabbit age w1 → the open Wrabbit rule → the rest → “Fallback Base64”. The panel takes the first matching rule, so clients without keys fall through and get the open response.

  3. #Check

    A request with the same header 2.2.0 sends. It takes an HWID slot — remove the test device afterwards.

    Terminalbash
    curl -sS -D - -o /tmp/wrabbit-age.body -A 'Wrabbit/2.2.0' \
      -H 'x-hwid: wrabbit-test-0001' \
      -H 'x-wrabbit-decrypt: age1pq1=w2;age1pq1=w1;age1=w2;age1=w1;' \
      'https://YOUR-DOMAIN/<SHORT_UUID>' | grep -i '^x-wrabbit-rule'
    
    head -c 34 /tmp/wrabbit-age.body; echo
    
    Expected outputtext
    x-wrabbit-rule: v1;rule=age;mode=compat;kid=w1
    -----BEGIN AGE ENCRYPTED FILE-----
    

    On a phone with 2.2.0: Subscription check → Response encryption shows “age, key w1”. The row “response isn’t encrypted — the panel doesn’t encrypt (Remnawave older than 2.8?)” means the panel dropped the encryption field.

#Regular and strict mode

Strict mode is turned on in the same «Подключение» (Connection) section with the «Строгий режим «Только Wrabbit»» (strict Wrabbit-only mode) checkbox, shown once encryption is on. The cabinet puts mode=strict into every age rule marker and gives a BLOCK rule with no conditions instead of the open Wrabbit rule.

Regular (mode=compat)Strict “Wrabbit only” (mode=strict)
Wrabbit 2.2.0encrypted responseencrypted response
Wrabbit 2.1.0, Happ and other clientsopen response, as beforerefused: the subscription stops working for them
What is below the age rulesthe open Wrabbit rulea BLOCK rule with no conditions instead of the open one

Strict mode only works when every other path to the servers is closed:

  • Response Rules settings has disableSubscriptionAccessByPath: true — otherwise /json and other paths serve the open config. 2.2.0 itself does not request /json after an age response;
  • the HWID limit is on globally and in every squad — otherwise /info serves server links;
  • the subscription page has showConnectionKeys: false (the default);
  • your bot, emails and subscriber account do not hand out server links.
Remnawave → Response Rules → settingsJSON
"settings": { "disableSubscriptionAccessByPath": true }

#What the subscriber sees on failure

SituationMessage in the appServers
The version does not know the key (key newer than the app)“This version doesn’t support the subscription format. Please update the app.”previous ones are kept
Broken ciphertext or an empty response with the rule=age marker“The provider couldn’t encrypt the subscription response. Servers are kept — please tell the provider.”previous ones are kept
The panel did not encrypt (Remnawave before 2.8)the response is parsed as usual, Subscription check warnsupdated
Key labels w1 and w2
LabelMethodPublic keyStatus
w1age1 (X25519)in the rule aboveactive
w1age1pq1 (ML-KEM-768 + X25519)issued by the accountactive
w2age1, age1pq1not publishedspare: already in the app, published when the key changes

Labels are never reused. On a key change the new label's rule goes above the old one, and the old one is removed once almost no old app versions remain in the panel's HWID list.

Updated November 14, 2026 · Found a mistake? →