I have a drive which was encrypted with LUKS, using the cryptsetup luksFormat /dev/sda1 (no other options, just the defaults) under linux. Then when i wanted to format a pendrive, i accidentally formated that drive instead of my pendrive. But i only wrote a label.
The LUKS faq says that for decryption, the password, the keyfile and the encryption method need to match, and that the keys are stored from the 208th byte, to the 592th byte, each key being 48 bytes. The label is 512 bytes. So as far as i can tell, the last key should still be there, because 592-512>48.
So if i know the encryption algorythm, i have the password, and i have the key, would it be possible for me to get back my data? If yes, then what exact steps do i need to perform for that to happen?
Im currently on dragonflybsd and it does have luks support so i think i can fix it from there.