Before the redsn0w jailbreak was public you could see a video on iH8snow`s twitter blog at http://www.twitvid.com/UI21P showing him modifying the root_fs.dmg from an .ipsw file:
All the guides you find on the net are not complete, missing a few important steps and, most important, the reason why it cant`t be done this way. Complete Guide:
![Decrypt Dmg File Without Key Decrypt Dmg File Without Key](/uploads/1/2/5/7/125755117/121906174.png)
That`s it. Save the .dmg to a new file and mount it. Your are now able to browse and edit the .dmg (for example edit the SystemVersion.plist like shown in the video). The problem and the reason why this guide can`t be used to create custom .ipsw files is that you can not re-encrypt .dmg files with the same key you used to decrypt them after changing something! Your created .ipsw files will be corrupted.
To finish the custom .ipsw you have to be able to re-encrypt the .dmg with the same key which is not possible and to add it back to the .ipsw (.zip) without changing the checksum which is impossible too (iH8sn0w posted a few days after the video that you also need to patch a few system files to make this work.)
I had given an assignment to decrypt a file called Q3encrypted and a AES secret key for the file. However,there is no extension for this file so how can i determine the file type of this file. Decrypt file without extension. Ask Question Asked 5 years, 9 months ago. The lecturer had taught us RSA and AES and i got a AES secret key for.
![Decrypt encrypted files without key Decrypt encrypted files without key](http://3.bp.blogspot.com/-lJIin9k1QKE/VhrHJs9C9GI/AAAAAAAAAD8/12Ev4f8TAY0/s1600/XCXFVXVDF.png)
- Rename your .ipsw file to .zip and unzip it
- Download vfdecrypt here: vfdecrypt.zip
- Place the .dmg you want to decrypt in the vfdecrypt folder
- Open Terminal, cd (switch) to the vfdecrypt folder by typing in 'cd'{space} and dragging the vfdecrypt folfer into the Terminal, press enter
- Type in './vfdecrypt -i {dmg) -o rootfs.dmg -k {key}' replace {dmg} with the filename of the .dmg that you want to decrypt and {key} with the key for the firmware you want to edit. Firmware keys can be found here. Press enter
- Your decrypted .dmg will be created in the vfdecrypt folder under the name 'rootfs.dmg'
- Right click on it and open it with hdd utility. Click on 'convert' and choose 'read/write' and 'without' in the encryption tab.
![Decrypt Dmg File Without Key Decrypt Dmg File Without Key](/uploads/1/2/5/7/125755117/121906174.png)
That`s it. Save the .dmg to a new file and mount it. Your are now able to browse and edit the .dmg (for example edit the SystemVersion.plist like shown in the video). The problem and the reason why this guide can`t be used to create custom .ipsw files is that you can not re-encrypt .dmg files with the same key you used to decrypt them after changing something! Your created .ipsw files will be corrupted.
To finish the custom .ipsw you have to be able to re-encrypt the .dmg with the same key which is not possible and to add it back to the .ipsw (.zip) without changing the checksum which is impossible too (iH8sn0w posted a few days after the video that you also need to patch a few system files to make this work.)