Way how I got to this point is that my phone somehow had restarted in my pocket and was asking for password which I entered but upon entering password it restarted so I was basically stuck in bootloop. So I went into adb through recovery and pulled all partitions of the phone so they are on my pc right now. The question is how can I decrypt them. I tried looking around how is 4.4.2 encrypted but didnt find any good answer. I only understood that key is stored in footer of it which I did find there but then arises question of how you derive the encryption key from it? I'm so confused. Also how is sdcard encrypted as I looked at files from sd card they seem to be file-based encrypted?