If you have the passcode and are able to perform a complete backup, is there any way to extract the encryption key from an iPhone?
I would recommend to check
The encryption key is embedded in the processor within the secure enclave (which is basically a second, independent system within the iPhone) and is not directly accessible to the iOS, so no, you cannot. There are more details about this in the mentioned iOS security guide provided by Apple.
This means that any attack on the passcode always has to happen on the phone itself, you cannot do it offline.













