Why XChat asks for a PIN when the messages use encryption
The first time a messenger asks for a PIN, the prompt can feel like one password too many. XChat uses it for a job that becomes important as soon as a person owns more than one device. According to X's Chat help page , a device creates a public and private key pair. The private key is used to decrypt messages. XChat protects recovery of that key with the PIN so another registered device can gain access without turning every old conversation into unreadable noise. X says the key is split into shares across three Juicebox realms, with two shares needed for recovery. The PIN stays on the device. The system limits recovery attempts, and a user who exhausts the attempts has to reset Chat. That reset removes access to the earlier encrypted message history. There is a practical lesson hidden in the cryptography. A PIN is not a decorative screen lock. Forgetting it can become a history problem. Reusing a simple PIN can make the recovery protection weaker. Logging out before another device ...