How do I back up my XChat key?
Last checked
In XChat, go to your profile → Keys and copy the private key: a 63-character string that starts with nsec1. Store it in a password manager or write it on paper kept somewhere safe, then check the copy character by character. That key is the whole account. Anyone holding it can use it, and without it the account can't be restored.
Find the key
XChat creates your key on the phone when you sign up. Back it up the same day, not the day you need a new phone.
- Open XChat and go to your profile.
- Open Keys.
- Copy the private key, the one beginning with nsec1. You may also see a public key beginning with npub: that one is meant to be shared and can't sign you in, so it's not a backup.
- Paste it straight into your password manager, or write it down (tips below).
- Compare what you saved with what's on screen before you close the app.
Where to keep it
Pick at least one place from this list; two places is safer, in case one is lost.
| Where | Suits | Watch out for |
|---|---|---|
| Password manager | Most people. Encrypted, synced across devices, easy to paste on a new phone. | Its own master password and two-step login need to be strong, because they now guard your XChat account too. |
| Paper, handwritten | People without a password manager, or as a second copy. | Sixty-three characters are easy to miscopy. Store it with passports and deeds, not in a wallet or a phone case. |
| Encrypted file or USB stick | A second, offline copy. | In two years you need to remember where it is and how to open it. |
Copying it by hand without mistakes
Nostr keys use an encoding called bech32 that was designed for people to read and type. A few details help when you write one down, and settle most doubts when you read it back later:
- It's all lowercase. Capital letters don't appear.
- After the opening nsec1, the characters 1, b, i and o never appear. A round shape is the digit 0, and a tall stroke is the letter l.
- The last characters are a checksum. A copying mistake almost always makes the key invalid rather than turning it into someone else's working key.
- Write it in groups of four or five characters, then read it back against the screen one group at a time.
What never to do with it
- Don't send it to anyone. That includes relatives, "support agents" and anyone who says they're from XChat. Nobody needs your private key to help you.
- Don't keep it only as a screenshot. Camera rolls sync to cloud photo backups, and one image among thousands is easy to delete by accident.
- Don't email it to yourself or keep it in a notes app that syncs without encryption.
- Don't paste it into websites, bots or apps that ask for it, unless it's a Nostr app you chose yourself and trust.
- Don't post it in a chat "for safekeeping", even in your own circle.
Signer apps and remote signers
Instead of keeping the key inside XChat, you can sign in through a Nostr signer app on the same phone or a bunker:// remote signer. Either way the signer holds the key and approves XChat's requests to sign; the key itself isn't handed to XChat. Nostr's specifications call these NIP-55 (Android signer apps) and NIP-46 (remote signing).
A signer moves the backup job; it doesn't remove it. The signer's key needs its own copy, kept the same careful way, because losing the signer and its key means losing the account.
Check that your backup works
An unchecked backup is a hope. Right after saving, put your copy next to the key under profile → Keys and compare it character by character; with a password manager, paste the saved copy somewhere temporary and compare the two strings.
The real test comes when you move to a new phone: sign in on the new phone with the saved key before you reset the old one. If it doesn't work, the old phone is still there to copy the key again.
Common questions
- Does XChat back up my key automatically?
- Don't count on any automatic copy. Treat the backup you make yourself as the only one, because XChat has no account recovery by SMS or email.
- How do I back up my Nostr private key (nsec) if I already use other Nostr apps?
- The same way: a password manager or paper. If you already have that nsec saved for another Nostr app and you used it to sign in to XChat, that copy covers XChat too. Check it's the same key.
- Should I keep a copy of my parents' key?
- If they agree, it's often the most reliable option: keep it in your password manager or on paper with their documents. Anyone holding the copy can use their account, so it should stay with one trusted person.
- Can I change my key if someone saw it?
- Not for the same account: the key is the account. Create a new account, back up the new key, and ask for a fresh invite to your circles. What to do if a key is lost or stolen.
Sources
How this page was made: drafted with AI help by the XChat team. What it says about XChat was checked against the app's open-source code; what it says about other apps links to their own pages, as of the date above. Spotted a mistake? Write to support@0xchat.com.