I wish to make use of full disk encryption using Luks on ubuntu 14.04. However, i wish to make use of my own python script to carry out the functionality of generating the decryption key during device boot, which it then sends to lukes to allow it to decrypt.
Ideally I would like "outcome from python script" + "user enters decryption key", which is then passed to lukes to allow the device to decrypt. I can then implement my own functionality in the python to create a 'second factor' to allow the device to decrypt.
I have searched around, but haven't really found the answer to my question. Can you help or provide any advice?