I'm just about done with my DM-Crypt / LUKS wrapper gui.
I'm just stuck at one step. I need to run:
cryptsetup --verbose --cipher 'aes-cbc-essiv:sha256 _
--key-size 256 --verify-passphrase luksFormat /dev/loop0
some of the above is in variables but thats neither here nor there. I can run it w/o the --verify-passphrase option but that is pointless because when u do luksOpen you have to enter a password anyway.
cmd = <above cryptsetup command>
a = os.popen(cmd, "w")
a.write(password) #For First Prompt
a.write(password) #For Second Prompt
Turns out, this doesn't work.
Can someone help me figure out how I can pass the password to the prompts when the prompts are displayed?
I've been searching the net and I haven't found anything that I understand.
Thanks for you help,