Code Directory Hash from Audit Token

Hi I was wondering how I could get the code directory hash string of an app given its audit token. I would like to do this in Swift. Thanks.

Answered by DTS Engineer in 696024022

The code in this post shows how to get a code object (SecCode) from an audit token. Once you have the code object, you can get the cdhash from that using kSecCodeInfoUnique.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

The code in this post shows how to get a code object (SecCode) from an audit token. Once you have the code object, you can get the cdhash from that using kSecCodeInfoUnique.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Code Directory Hash from Audit Token
 
 
Q