iOS Question Does an ipa have a readable signature

JackKirk

Well-Known Member
Licensed User
Longtime User
CFBundleIdentifier seems to just give me whatever I have entered at [Project] > [Build Configurations] > [Package:] - can't see this as being unique to the version of the app.

Any other suggestions?
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
I'm trying to protect from someone modifying and/or repackaging and putting on a site like Cydia.

Also I have some components of the app that I consider proprietary - can you tell me just how exposed they are to someone lifting them and using them in their own apps.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Generally speaking, iOS apps are more difficult to decompile than Android apps.
You can use this code to calculate the signature of the embedded provision profile:
B4X:
#if Relesae
   Dim b() As Byte = Bit.InputStreamToBytes(File.OpenInput(File.DirAssets, "embedded.mobileprovision"))
   Dim md As MessageDigest
   Dim bc As ByteConverter
   Dim hex As String = bc.HexFromBytes(md.GetMessageDigest(b, "SHA-256"))
   Log(hex)
   Page1.Title = hex
#end if

A determined hacker will be able to remove the check or modify it as needed.
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
Erel,

Many thanks for your forbearance - I take it this will change if the hacker inserts or removes anything from the app and / or resigns it?
 
Upvote 0
Top