Exemple: How does Apple guarantee that the iOS source code will not be discovered by an adversary?

Is there any type of different encryption for this case?

  • Linsensuppe@feddit.org
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 months ago

    TL;DR: They can‘t. Apps are not encrypted and could be read by anyone that has access to the application files

    But it is not as easy as it sounds:

    There is a saying „Everything is open source if you can read assembly.“ And this is true (for most cases)

    They cant encrypt their code because you phone has to be able to read it, and therefore you could.

    But the applications are compiled, meaning a application called the compiler turns the readable code in form of text to binary, which can be read and executed by a computer. Reading binary is (almost) impossible for a human, but there are applications called decompilers which turn binary back to code, but most of the time to assembly which is hard (but not impossible) to read. You could post this online, but very few people would be able to understand this. Turning it back into normal code would require way too much effort.

    But there are other problems with reading source code (specifically for ios):

    1. You have to get acces to the compiled application which will require you to jailbreak you phone. Only then you can access system files.
    2. Code for different chip types are compiled differently, and im not sure if there is a decompiler for the type used by ios chips.
    3. Since the binary is different, the assembly code is different, which means you habe to learn to read ios-decompiled-assembly specifically.