dmsetup create crypt1 --table "0 `blockdev --getsize /dev/sdb2` crypt aes-cbc-essiv:sha256 <Put the 16-byte hex key here> 0 /dev/sdb2 0"
I got it from step 6 of the first answer here.
I am trying to view the files on an android adopted SD card.
The card suddenly stopped working on my phone and I'm now trying to retrieve my files before I press on "forget" to unmount it from my phone and go back to using my phone normally on it's Internal memory.