[Sprint HTC EVO 4G LTE] nkk71:
write-up is still in progress (I'll make this more readable), but since [MENTION=1102297]Sneakyghost[/MENTION] is always in a hurry :p

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]ls[/COLOR][/B]
m7_keydata_7.15.401.1.bin
PN07IMG_M7_UL_L50_SENSE60_MR_HTC_Europe_7.19.401.30_Radio_4T.35.3218.16_10.33Q.1718.01L_release_449611_combined_signed.zip

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]ruuveal -K m7_keydata_7.15.401.1.bin PN07IMG_M7_UL_L50_SENSE60_MR_HTC_Europe_7.19.401.30_Radio_4T.35.3218.16_10.33Q.1718.01L_release_449611_combined_signed.zip OUT1.zip[/COLOR][/B]
ruuveal
-------

Large zip format detected containing 5 zipfile(s)
invalid htc aes encrypted zip file!

WOOT :confused: I doubt HTC have changed decryption keys between 7.15.401.1 and 7.19.401.30 (I'll confirm that later), so

Let's take a closer look:

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]ruuveal -D PN07IMG_M7_UL_L50_SENSE60_MR_HTC_Europe_7.19.401.30_Radio_4T.35.3218.16_10.33Q.1718.01L_release_449611_combined_signed.zip in_parts.zip[/COLOR][/B]
ruuveal
-------

Large zip format detected containing 5 zipfile(s)
Dumped (copied) zip file to: 01_in_parts.zip
Dumped (copied) zip file to: 02_in_parts.zip
Dumped (copied) zip file to: 03_in_parts.zip
Dumped (copied) zip file to: 04_in_parts.zip
Dumped (copied) zip file to: 05_in_parts.zip

nkk71@ubuntu:/mnt/hgfs/Drive_W/zUBUNTU/m7encRUU/howto$ [B][COLOR="Blue"]ls -l[/COLOR][/B]
total 4896813
-rwxrwxrwx 1 root root 51487926 Dec 18 14:27 01_in_parts.zip
-rwxrwxrwx 1 root root 534450806 Dec 18 14:28 02_in_parts.zip
-rwxrwxrwx 1 root root 565313359 Dec 18 14:29 03_in_parts.zip
-rwxrwxrwx 1 root root 26055075 Dec 18 14:29 04_in_parts.zip
-rwxrwxrwx 1 root root 511292522 Dec 18 14:30 05_in_parts.zip

Let's test those, and see what gives:

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]unzip -t '*_in_parts.zip'[/COLOR][/B]
Archive: 01_in_parts.zip
testing: android-info.txt OK
testing: hboot_signedbyaa.img OK
testing: radio.img OK
testing: rcdata.img OK
testing: splash1.nb0 OK
testing: sbl2.img OK
testing: sbl3.img OK
testing: tz.img OK
testing: rpm.img OK
testing: adsp.img OK
testing: pg2fs_spcustom.img OK
testing: ramdisk.img OK
testing: tp_SYN3202.img OK
testing: sbl1-1.img OK
testing: sbl1-2.img OK
testing: sbl1-3.img OK
testing: sbl1-4.img OK
testing: cir.img OK
testing: sbl1-5.img OK
testing: recovery_signed.img OK
testing: boot_signed.img OK
[B][COLOR="Green"]No errors detected in compressed data of 01_in_parts.zip.[/COLOR][/B]

Archive: 02_in_parts.zip
warning [02_in_parts.zip]: 128 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 128
(attempting to re-compensate)
file #1: bad zipfile offset (local header sig): 128
file #2: bad zipfile offset (local header sig): 534449652
(attempting to re-compensate)
testing: android-info.txt OK
testing: android-info-1.txt OK
At least one error was detected in 02_in_parts.zip.

Archive: 03_in_parts.zip
warning [03_in_parts.zip]: 128 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 128
(attempting to re-compensate)
file #1: bad zipfile offset (local header sig): 128
file #2: bad zipfile offset (local header sig): 565312205
(attempting to re-compensate)
testing: android-info.txt OK
testing: android-info-2.txt OK
At least one error was detected in 03_in_parts.zip.

Archive: 04_in_parts.zip
warning [04_in_parts.zip]: 128 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 128
(attempting to re-compensate)
file #1: bad zipfile offset (local header sig): 128
file #2: bad zipfile offset (local header sig): 26053923
(attempting to re-compensate)
testing: android-info.txt OK
testing: android-info-3.txt OK
At least one error was detected in 04_in_parts.zip.

Archive: 05_in_parts.zip
warning [05_in_parts.zip]: 128 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 128
(attempting to re-compensate)
file #1: bad zipfile offset (local header sig): 128
file #2: bad zipfile offset (local header sig): 215
(attempting to re-compensate)
file #2: bad zipfile offset (local header sig): 215
file #3: bad zipfile offset (local header sig): 168019358
file #4: bad zipfile offset (local header sig): 336053760
file #5: bad zipfile offset (local header sig): 336055756
file #6: bad zipfile offset (local header sig): 336058804
file #7: bad zipfile offset (local header sig): 336061453
file #8: bad zipfile offset (local header sig): 336076596
testing: boot_signed.img OK
At least one error was detected in 05_in_parts.zip.

1 archive was successfully processed.
4 archives had fatal errors.

So the first archive (01_in_parts.zip) isn't encrypted, it was only signed :)

Let's generate another keydata file, just out of curiosity:

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]unzip 01_in_parts.zip hboot_signedbyaa.img[/COLOR][/B]
Archive: 01_in_parts.zip
inflating: hboot_signedbyaa.img

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]bruutveal hboot_signedbyaa.img 02_in_parts.zip m7_keydata_7.19.401.30.bin[/COLOR][/B]
bruutveal
---------

SUCCESS!rcing key[loop 1]: 1070544/2096384...
Successful bruutveal run, key written to: m7_keydata_7.19.401.30.bin

Let's compare them:

nkk71@ubuntu:~/m7encRUU/howto$ md5sum m7_keydata_*
1a0860b85bf5f756973b102a8c5df029 m7_keydata_7.15.401.1.bin
1a0860b85bf5f756973b102a8c5df029 m7_keydata_7.19.401.30.bin

As suspected, it's the same keydata :o

But this is also a method to get the keydata if you don't already have it :D

Let's decrypt the other archives:

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]ruuveal -K m7_keydata_7.19.401.30.bin 02_in_parts.zip P2.zip[/COLOR][/B]
ruuveal
-------

Decrypted RUU (zip) written to: P2.zip
nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]ruuveal -K m7_keydata_7.19.401.30.bin 03_in_parts.zip P3.zip[/COLOR][/B]
ruuveal
-------

Decrypted RUU (zip) written to: P3.zip
nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]ruuveal -K m7_keydata_7.19.401.30.bin 04_in_parts.zip P4.zip[/COLOR][/B]
ruuveal
-------

Decrypted RUU (zip) written to: P4.zip
nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]ruuveal -K m7_keydata_7.19.401.30.bin 05_in_parts.zip P5.zip[/COLOR][/B]
ruuveal
-------

Decrypted RUU (zip) written to: P5.zip

So they decrypted fine, let's test:

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]unzip -t 'P?.zip'[/COLOR][/B]
Archive: P2.zip
testing: system_1.img OK
testing: android-info.txt OK
testing: android-info-1.txt OK
No errors detected in compressed data of P2.zip.

Archive: P3.zip
testing: system_2.img OK
testing: android-info.txt OK
testing: android-info-2.txt OK
No errors detected in compressed data of P3.zip.

Archive: P4.zip
testing: system_3.img OK
testing: android-info.txt OK
testing: android-info-3.txt OK
No errors detected in compressed data of P4.zip.

Archive: P5.zip
testing: android-info.txt OK
testing: dzdata_16g.img OK
testing: dzdata_32g.img OK
testing: dzdata_16g.hdr OK
testing: dzdata_64g.hdr OK
testing: dzdata_32g.hdr OK
testing: tp_HMX852XD.img OK
testing: dzdata_64g.img OK
testing: boot_signed.img OK
No errors detected in compressed data of P5.zip.

4 archives were successfully processed.

All looks good; now let's rename the first archive and run a test again:

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]mv 01_in_parts.zip P1.zip[/COLOR][/B]

nkk71@ubuntu:~/m7encRUU/howto$[B][COLOR="Blue"] ls -l[/COLOR][/B]
total 4896813
-rwxrwxrwx 1 root root 534450806 Dec 18 14:28 02_in_parts.zip
-rwxrwxrwx 1 root root 565313359 Dec 18 14:29 03_in_parts.zip
-rwxrwxrwx 1 root root 26055075 Dec 18 14:29 04_in_parts.zip
-rwxrwxrwx 1 root root 511292522 Dec 18 14:30 05_in_parts.zip
-rwxrwxrwx 1 root root 96 Jan 25 2015 m7_keydata_7.15.401.1.bin
-rwxrwxrwx 1 root root 51487926 Dec 18 14:27 P1.zip
-rwxrwxrwx 1 root root 534450678 Dec 18 14:32 P2.zip
-rwxrwxrwx 1 root root 565313231 Dec 18 14:34 P3.zip
-rwxrwxrwx 1 root root 26054947 Dec 18 14:35 P4.zip
-rwxrwxrwx 1 root root 511292394 Dec 18 14:36 P5.zip
-rwxrwxrwx 1 root root 1688600200 Sep 12 18:59 PN07IMG_M7_UL_L50_SENSE60_MR_HTC_Europe_7.19.401.30_Radio_4T.35.3218.16_10.33Q.1718.01L_release_449611_combined_signed.zip

nkk71@ubuntu:~/m7encRUU/howto$ [B][COLOR="Blue"]unzip -t 'P?.zip'[/COLOR][/B]
Archive: P1.zip
testing: android-info.txt OK
testing: hboot_signedbyaa.img OK
testing: radio.img OK
testing: rcdata.img OK
testing: splash1.nb0 OK
testing: sbl2.img OK
testing: sbl3.img OK
testing: tz.img OK
testing: rpm.img OK
testing: adsp.img OK
testing: pg2fs_spcustom.img OK
testing: ramdisk.img OK
testing: tp_SYN3202.img OK
testing: sbl1-1.img OK
testing: sbl1-2.img OK
testing: sbl1-3.img OK
testing: sbl1-4.img OK
testing: cir.img OK
testing: sbl1-5.img OK
testing: recovery_signed.img OK
testing: boot_signed.img OK
No errors detected in compressed data of P1.zip.

Archive: P2.zip
testing: system_1.img OK
testing: android-info.txt OK
testing: android-info-1.txt OK
No errors detected in compressed data of P2.zip.

Archive: P3.zip
testing: system_2.img OK
testing: android-info.txt OK
testing: android-info-2.txt OK
No errors detected in compressed data of P3.zip.

Archive: P4.zip
testing: system_3.img OK
testing: android-info.txt OK
testing: android-info-3.txt OK
No errors detected in compressed data of P4.zip.

Archive: P5.zip
testing: android-info.txt OK
testing: dzdata_16g.img OK
testing: dzdata_32g.img OK
testing: dzdata_16g.hdr OK
testing: dzdata_64g.hdr OK
testing: dzdata_32g.hdr OK
testing: tp_HMX852XD.img OK
testing: dzdata_64g.img OK
testing: boot_signed.img OK
No errors detected in compressed data of P5.zip.

5 archives were successfully processed.

et voila, all zips decrypted and tested OK :cowboy::cowboy: