#
Authentication
Key management and login in the Nostr Mail client.
#
How It Works
The client uses Nostr keys for authentication:
- Private Key (nsec/hex): Your identity - never shared
- Public Key (npub/hex): Your address - shared publicly
Keys are stored securely using Flutter Secure Storage.
#
Login Options
#
Import Existing Key
If you already have a Nostr identity:
- Open the app
- Tap "Import Key"
- Enter your private key (nsec or hex format)
- Tap "Login"
#
Generate New Key
To create a new identity:
- Open the app
- Tap "Generate New Key"
- Important: Backup your key immediately!
- Continue to inbox
#
Key Formats
The client accepts multiple formats:
#
Key Storage
Keys are stored using platform-specific secure storage:
#
Security Best Practices
Backup Your Key
Your private key is the only way to access your account. If lost, your identity cannot be recovered.
#
Do
- Back up your key in a secure location
- Use a password manager
- Consider a hardware backup
#
Don't
- Share your private key
- Store it in plain text
- Take screenshots of it
#
Logout
To log out:
- Go to Profile
- Tap "Logout"
- Confirm
Logging out removes the key from the device. Make sure you have a backup!
#
NIP-07 Extension (Web)
On web, you can use browser extensions like:
The client will detect and use the extension for signing.
#
Multiple Accounts
Currently, the client supports one account at a time. To switch accounts:
- Logout
- Login with different key