TAPATCH apps are closed source, and the Software Terms normally forbid reverse engineering them. ForeverCrypt is the exception. Encryption you can’t check isn’t worth much, so anyone may take it apart and see whether it does what this page says.
You may reverse engineer it
Under the Software Terms, anyone may reverse engineer, decompile, disassemble and debug ForeverCrypt to check its security, and publish what they find. The debug symbols at the bottom of this page make that easier.
Found a problem? Email support@tapatch.com first, and wait until it’s fixed or 90 days have passed before you publish the details. TAPATCH won’t take legal action against good-faith research.
Copying, selling or republishing the app or its code is still not allowed, and the other TAPATCH apps keep the usual ban.
The building blocks
| Job | What ForeverCrypt uses | Rust crate |
|---|---|---|
| Key exchange | ML-KEM-768 (NIST FIPS 203), post-quantum | fips203 0.4 |
| Encryption | XChaCha20-Poly1305 | chacha20poly1305 0.10 |
| Signatures | Ed25519, strict verification | ed25519-dalek 2 |
| Hashing | SHA-256 | sha2 0.10 |
| Random numbers | The Windows system random number generator | getrandom 0.2 |
| Key file lock | Windows DPAPI, for your Windows account only | Windows |
| Memory | Keys and opened messages are wiped when no longer needed | zeroize 1 |
Your keys
The first time it starts, ForeverCrypt makes two key pairs on your PC: an ML-KEM-768 pair to lock messages and an Ed25519 pair to sign them. The private halves never leave your PC.
The key you share is the two public halves together:
FCKEY2. + base64( ML-KEM-768 public key (1184 B) ‖ Ed25519 public key (32 B) )
The fingerprint you read to your friend is the first 16 bytes of SHA-256 over "ForeverCrypt FCKEY2 fingerprint" followed by those 1216 bytes, shown in hex. If you both see the same fingerprint, nobody swapped a key on the way.
How a message is locked
- ForeverCrypt runs ML-KEM-768 encapsulation with your friend’s public key. This gives a 1088-byte ciphertext and a 32-byte shared secret that only your friend’s private key can recover.
- The message key is SHA-256 of
"ForeverCrypt FC2 message key"followed by the shared secret. - Your Ed25519 key signs the message together with the time, its kind and a hash of your friend’s ML-KEM key. Because the signature names your friend’s key, a signed message can’t be passed on to someone else as if you had sent it to them.
- The signature goes inside the encryption, with the message. Then come a 0x80 byte and zeros up to a multiple of 16 bytes, so the exact length doesn’t show.
- All of that is encrypted with XChaCha20-Poly1305 under the message key, with a random 24-byte nonce. The header is authenticated too, so a single changed byte makes the whole message fail to open.
- The result is base64-encoded behind
FC2.and copied for you to paste anywhere.
The full layout:
code = "FC2." + base64( "FC" ‖ 0x03 ‖ kem_ct (1088 B) ‖ nonce (24 B) ‖ ciphertext ‖ tag (16 B) ) key = SHA-256( "ForeverCrypt FC2 message key" ‖ ML-KEM-768 shared secret ) aad = "FC" ‖ 0x03 ‖ kem_ct inner = kind (1 B: 0 text, 1 picture) ‖ sent (8 B, Unix seconds, big-endian) ‖ sig (64 B) ‖ body ‖ 0x80 ‖ 0x00… sig = Ed25519( "ForeverCrypt FC2 signature" ‖ 0x03 ‖ SHA-256(recipient's ML-KEM key) ‖ kind ‖ sent ‖ body ) body = UTF-8 text, or: name length (1 B) ‖ file name (up to 120 B) ‖ picture bytes
How a message is opened
Your PC recovers the shared secret with your ML-KEM private key, rebuilds the message key and decrypts. If any byte was changed, decryption fails and nothing is shown. The signature is then checked against the key you saved for your friend, with strict Ed25519 verification. A message that doesn’t match it gets a clear warning.
Pictures
Pictures and GIFs use the same format with kind 1, up to 25 MB, and are saved as a .fcrypt file instead of a text code. Before a picture is locked, hidden details like location and camera data are removed without re-encoding it. Only the rotation is kept. File names are cleaned when a picture is opened, so a name can’t hide a different file type.
Where your key is kept
Your private keys are saved in %APPDATA%\TAPATCH\ForeverCrypt\identity.key, locked with Windows DPAPI for your Windows account, with an extra app-specific value. Copied to another PC or another Windows user, the file can’t be opened.
Key files from ForeverCrypt 1.0.7 and older weren’t locked. ForeverCrypt 1.0.8 and newer overwrite them with zeros and save a locked one. Your friend’s key is saved next to it as plain text. It’s a public key, so that’s safe.
No network
ForeverCrypt never connects to the internet. It has no account, no server, no update check and no telemetry. The only web link in it is the Donate button, which opens tapatch.com in your browser. You can confirm this with a firewall or NetPulse.
Older messages
Codes that start with FC1. come from ForeverCrypt 1.0.7 and older. They use the same ML-KEM-768 and XChaCha20-Poly1305, with SHA-256 of the shared secret as the key, but they have no signature, so they’re shown as unsigned. ForeverCrypt still opens them, and still sends FC1. codes to friends whose key starts with FCKEY1.
Limits
- No forward secrecy: anyone who later gets your private key can open messages that were sent to you before. Randomize my key starts over with new keys.
- The encryption is post-quantum, but the Ed25519 signatures aren’t. A post-quantum signature would add about 3,300 bytes to every code. A future quantum computer could fake a signature, but still couldn’t read a message.
- The sent time comes from the sender’s PC clock.
- DPAPI protects the key file from other PCs and other users, not from malware running as you.
- The app you paste codes into still sees who you talk to and when.
- The fingerprint check is what stops a swapped key. If you skip it, you’re trusting the app the key came through.
Debug symbols
Each download has the exact forevercrypt.exe from that version’s installer, its full PDB with function names, types, file names and line numbers, and a smaller public PDB. Open them in WinDbg, x64dbg, Ghidra, IDA or Binary Ninja.
| Version | Symbols | SHA-256 of forevercrypt.exe |
|---|---|---|
| 1.0.9 | Download (13 MB) | c434032b262eb09f793216f7708066792b82e7938d047932bc5c2579d61e16a6 |
| 1.0.8 | Download (13 MB) | d193ccb87daaa4bae4efc1f59c6cecf112d465b0085c147f43bb37302b0c3cc9 |