Code I wrote to manage LUKS on an Ubuntu encrypted drive.