Encryption
How PinkyBond encrypts messages and calls
Everything she shares with you is encrypted on her phone and decrypted on yours. Our server forwards sealed envelopes it cannot open. We never hold the key.
Built on platform cryptography
We did not write our own crypto. On iPhone we use Apple's CryptoKit. On Android we use Google's Tink. Curve25519 key agreement, HKDF-SHA256 and AES-256-GCM on both, pinned to each other by shared test vectors, so an iPhone and an Android phone produce byte-for-byte identical ciphertext.
Key agreement
Curve25519 (X25519) ECDH
Encryption
AES-256-GCM
Key derivation
HKDF-SHA256
What we do, and what we don't
Every row is checkable. The last three are where we fall short of the best messengers, and we would rather you read that here than find it out later.
| Dimension | PinkyBond |
|---|---|
| Encryption | AES-256-GCM, end-to-end between the two phones |
| Key agreement | Curve25519 (X25519) ECDH, then HKDF-SHA256 |
| Implementation | Apple CryptoKit on iPhone, Google Tink on Android — byte-for-byte interoperable |
| Key storage | iOS Keychain / Android Keystore, hardware-backed where available |
| Pairing | QR code in person, or a 6-character code / link exchanged remotely; both public keys exchanged |
| Verification | A 6-digit code on both phones confirms no one sat in the middle |
| Account | None — no phone number, no email, no password |
| Serverning xabar va qo'ng'iroq mazmuniga kirishi | Yo'q. Kalitni hech qachon o'zimizda saqlamaymiz. |
| What the relay stores | Juftlash identifikatori, xabar turi, vaqt tamg'asi, hajmi, shifrlangan matn — yetkazilishi bilanoq o'chiriladi, ko'pi bilan 30 kun |
| Suratlar, videolar va fayllar | 2 GB gacha, faqat sening ikkala telefoningda bo'lgan, fayl uchun yangi kalit bilan muhrlanadi; yuklab olinishi bilanoq o'chiriladi, ko'pi bilan 30 kun. Hali yangilanmagan sherik ilovasiga: juftlash kaliti ostida 25 MB gacha, 30 kun saqlanadi |
| Qo'ng'iroqlar jurnali | Qaysi telefon qo'ng'iroq qilgani, qachon, ovozli yoki videoli, natijasi va davomiyligi — serverimiz tomonidan o'qiladi, 90 kun saqlanadi, juftlikni bekor qilganingda o'chiriladi. Ovoz yoki videoni hech qachon o'z ichiga olmaydi. |
| Push notifications | Carry no text; the phone decrypts locally |
| Safety Mode | Yes — her phone sends neutral substitute data instead of her real status. Your app shows no indicator, though the flag itself is in the snapshot. |
| Forward secrecy | No — one key per pairing |
| Open source | No |
| Independent audit | Not yet |
How pairing works
No phone number. No email. No account. In the same room, she shows a QR code and you scan it. Apart, she sends you a 6-character code or a link. Either way both phones exchange public keys, derive the same secret, and show a 6-digit verification code so the two of you can confirm no one sat in the middle.
She taps “Pair with partner” in PinkyBloom
Her phone generates a Curve25519 key pair (Apple CryptoKit on iPhone, Google Tink on Android)
She shows a QR code, or sends you a 6-character code or link if you are apart
You scan or enter it in PinkyBond, and your phone generates its own key pair
Your public key travels back to her the same way; both phones now hold both public keys
Each phone runs ECDH and HKDF-SHA256 to derive the same shared secret — nothing secret crosses the network
The shared secret is stored in the iOS Keychain or the Android Keystore
A 6-digit verification code appears on both phones; if they match, no one sat in the middle
The Blind Relay
Serverimiz muhrlangan zarflar uchun pochta qutisidir. Shifrlangan matnni faqat boshqa telefon uni olguncha saqlaydi, keyin o'chiradi — agar o'sha telefon oflayn qolsa, ko'pi bilan 30 kundan keyin. U hech qachon kalitni saqlamaydi. Push xabarnomalar matn olib yurmaydi; telefon shifrni mahalliy ravishda ochadi.
PinkyBloom
Encrypts on her phone
Blind Relay
Shifrlangan matnni yetkazilguncha saqlaydi, ko'pi bilan 30 kun
Cannot decrypt
PinkyBond
Decrypts on your phone
Serverimiz xabar, fayl va qo'ng'iroq haqida saqlaydigan hamma narsa:
pairingId
Identifier for the pairing; not a name, number or email
senderRole
Which app sent it: PinkyBloom or PinkyBond
messageType
Qanday turdagi zarf ekani — masalan, chat xabari, holat suratlanishi, yetkazib berish tasdig'i yoki qo'ng'iroq o'rnatilishi — hech qachon ichida nima borligi emas
timestamp
When it was sent
ciphertext
AES-256-GCM blob we cannot open; its length is the only thing we can measure
retention
Boshqa telefon uni olishi bilanoq o'chiriladi; oflayn qolsa ko'pi bilan 30 kun
relayReceipts
Yetkazilgandan keyin, mazmuni bo'lmagan yozuv: qaysi xabar ekani va yetkazilgani yoki muddati tugagani. Yuboruvchining telefoni “yetkazilmadi” deb ko'rsatishi uchun 30 kun saqlanadi
mediaObjects
2 GB gacha suratlar, ovozli xabarlar, videolar va fayllar, Cloudflare R2'da, faqat shifrlangan xabar ichida yuradigan, fayl uchun yangi kalit ostida shifrlangan matn sifatida saqlanadi. Sherikning telefoni uni yuklab olishi bilanoq o'chiriladi; ko'pi bilan 30 kun
callLog
Ikkala telefondan qaysi biri qo'ng'iroq qilgani, qachon, ovozli yoki videoli, javob berilgani, javobsiz qolgani yoki rad etilgani va qancha davom etgani. Serverimiz tomonidan o'qiladi — o'chirilgan telefon javobsiz qo'ng'iroq haqida shu tarzda bilib oladi. 90 kun saqlanadi, juftlikni bekor qilganingda o'chiriladi. Ovoz yoki videoni hech qachon o'z ichiga olmaydi
Calls
Voice and video are peer-to-peer WebRTC with DTLS-SRTP and fresh keys for every call. The call setup rides the encrypted relay like any message. Before media flows, your phone checks the peer's DTLS fingerprint against a key derived from the pairing secret; a failed check aborts the call.
Tarmoq to'g'ridan-to'g'ri yo'lni blokladiganda, rele o'qiy olmagan paketlarini uzatadi. Hech qanday media server qo'ng'iroqni hech qachon eshitmaydi va hech qanday qo'ng'iroq yozib olinmaydi. iPhone bilan Android o'rtasida ishlaydi. Serverimiz saqlaydigan narsa — qo'ng'iroqlar jurnali: qaysi telefon qo'ng'iroq qilgani, qachon, ovozli yoki videoli, natijasi va qancha davom etgani — 90 kun davomida, shunda telefoni o'chirilgan sherik ham javobsiz qo'ng'iroqni ko'radi. Batafsil /calls.
Safety Mode
Encryption protects her data from outsiders and from us. Safety Mode is for the case where the person on the other end is the concern. She can pause sharing at any time, and he is never notified. She can also turn on Safety Mode, which substitutes neutral data he cannot distinguish from a real update.
When Safety Mode is active, the partner sees:
Phase
“Follicular”
Mood
“Good”
Energy
3 (Moderate)
The neutral data is encrypted and sent through the normal relay, so it looks the same as a real update in transit and on his screen.
