منذ الإصدار ١.١.٠ يحمل كل مسافر محفوظ صور جوازه وتأشيرته وإقامته. هنا ما يحدث للصورة بعد أن تلتقطها، ولماذا لا تفتحها نسخة احتياطية.
فريق التطوير في راحة٥ دقائق قراءة
لماذا على جوالك، لا على خوادمنا
عند المنفذ يُطلب منك الجواز والتأشيرة، وكثيراً ما يكون الاتصال ضعيفاً أو معدوماً. لذلك تُفتح الصور من خانة المعبر في تذكرتك دون إنترنت.
ولم نرد أن نحتفظ بصور جوازات المسافرين: ما لا نملكه لا يمكن أن يتسرّب من عندنا. فالصورة تُلتقط على جوالك، وتُشفَّر عليه، وتبقى فيه.
ما يحدث للصورة بعد أن تلتقطها
تُصغَّر. إلى ١٦٠٠ بكسل على ضلعها الأطول بجودة ٧٠٪، وإن جاوزت ٤٠٠ كيلوبايت أُعيدت بـ ١٢٠٠ بكسل وجودة ٥٠٪. تبقى مقروءة، ولا تثقل جوالك.
تُشفَّر. بـ AES-256-GCM، بمفتاح طوله ٣٢ بايت صُنع على جوالك، ومع كل صفحة رقم عشوائي جديد. ما يُحفظ في الملف هو هذا الرقم والنص المشفّر، لا الصورة.
تُحذف النسخ المكشوفة. منتقي الصور وأداة التصغير يتركان نسخاً غير مشفّرة، فنحذفها فور ختم الصفحة، نجح الختم أم لم ينجح. وإن أُغلق التطبيق في منتصف التصوير كُنست بقاياها في المرة التالية.
أين المفتاح، ولماذا لا تفتح النسخة الاحتياطية صورك
يُحفظ المفتاح في Keychain على iPhone وفي Keystore على Android، لهذا الجهاز وحده وما دام غير مقفل (WHEN_UNLOCKED_THIS_DEVICE_ONLY). فلا يدخل في النسخة الاحتياطية، ولا يُقرأ والجوال مقفل.
إن استعدت نسخة احتياطية على جوال جديد وصلت ملفات الصور بلا مفتاحها، فلا تُفتح، ويحذفها التطبيق في أول تحميل. هذا مقصود: صورة جوازك لا تصل إلى جهاز لم تلتقطها عليه بنفسك.
وفي الاتجاه الآخر: إن تعذّرت قراءة المفتاح مرة لسبب عابر، لا نعدّ ذلك غياباً له، ولا نحذف شيئاً.
حدود واضحة
٣ وثائق لكل مسافر، وصفحتان لكل وثيقة، و٢٤ صورة على الجوال كله. نتحقق من الحدود قبل أن تُفتح الكاميرا، ومرة أخرى عند الحفظ، وعمليات الحفظ تأخذ دورها واحدة بعد أخرى، فلا تضيع صورة بين اثنتين.
الكاميرا متاحة على iPhone وعلى Android 10 فما بعده. وعلى الإصدارات الأقدم تختار الصورة من المعرض، ونقول لك أن تلتقطها بكاميرا الجوال أولاً.
لا صور مصغّرة
قائمة الوثائق تعرض نوع كل وثيقة وعدد صفحاتها، لا صورة مصغّرة منها، فمن ينظر من فوق كتفك لا يرى جوازك. وحين تفتح صفحة تُفك في الذاكرة وحدها، وتختفي لحظة تخرج من التطبيق.
وحذف مسافر يحذف صوره معه، ونقول لك ذلك قبل أن تؤكد.
والمسافرون المحفوظون كذلك
اسم كل مسافر محفوظ ورقم جوازه وجنسه وجنسيته تبقى على جوالك، في المخزن الآمن نفسه، لا في ملف عادي. ورقم الجواز لا يغادر جوالك إلا داخل حجز، كما كان دائماً. لذلك لا تنتقل القائمة إلى جوال آخر حين تسجّل الدخول عليه، ولا يمسّها حذف حسابك.
«المسافرون المحفوظون» على هذا الجهاز فقط، والتذكرة تفتح بلا إنترنت.
Why on your phone, not on our servers
At the border you are asked for your passport and visa, and the signal is often weak or gone. So the photos open from the crossing box on your ticket with no connection.
And we did not want to hold travellers' passport photos: what we do not have cannot leak from us. A photo is taken on your phone, encrypted on it, and stays there.
What happens to a photo once you take it
It is made smaller. To 1600 pixels on its long edge at 70% quality, and if that comes out over 400 KB, again at 1200 pixels and 50%. Still readable, and light on your phone.
It is encrypted. With AES-256-GCM, under a 32-byte key made on your phone, with a fresh random nonce for every page. What the file holds is that nonce and the ciphertext, never the picture.
The plain copies are deleted. The photo picker and the resizer leave unencrypted copies behind, and we delete them as soon as the page is sealed, whether or not sealing worked. If the app is closed mid-photo, what it left is swept up the next time.
Where the key lives, and why a backup cannot open your photos
The key is kept in the Keychain on iPhone and the Keystore on Android, for this device only and only while it is unlocked (WHEN_UNLOCKED_THIS_DEVICE_ONLY). It is not part of a backup, and it cannot be read while the phone is locked.
Restore a backup on a new phone and the photo files arrive without their key, so they will not open, and the app removes them the first time it loads them. That is on purpose: your passport photo never reaches a device you did not take it on yourself.
The other way round: if the key fails to read once for a passing reason, we do not take that to mean it is gone, and we delete nothing.
Clear limits
Three documents per traveller, two pages per document, and twenty-four photos on the phone in all. We check the limits before the camera opens and again at the save, and saves take turns, so two at once cannot lose a photo between them.
The camera is offered on iPhone and on Android 10 and later. On older versions you pick the photo from your library, and we tell you to take it with the phone's camera first.
No thumbnails
The document list shows each document's kind and how many pages it has, never a thumbnail, so someone looking over your shoulder does not see your passport. When you open a page it is decrypted into memory only, and it is gone the moment you leave the app.
Removing a traveller removes their photos too, and we say so before you confirm.
The same goes for saved travellers
Each saved traveller's name, passport number, gender and nationality stay on your phone, in the same secure storage, never in a plain file. A passport number leaves your phone only inside a booking, as it always has. That is why the list does not follow you to another phone when you sign in there, and why deleting your account does not touch it.
Saved travellers live on this device only, and the ticket opens offline.