I want to use Volume Encryption on my Debian machine. Linux does have such a tool for that. But I want to use my own encryption tool to encrypt a partition. Now, is it somehow possible to specify it in Linux, so my own encryption tool will be used to encrypt a volume?

This tiny crypt tool only en-/decrypts single files and runs from terminal like: ./crypttool -encrypt -p 12345 filename.txt


The kernel doesn't defer to user space, and even less running user space tools, in order to de/encrypt data on block devices.

If you want your own encryption mechanism, you will need to implement it in the kernel and implement support in cryptsetup and Co to use it.

Alternatively, you could do a fuse implementation maybe, however I wouldn't recommend any of this other than for fun / experimenting.

  • So there really is no Kernel Patch available to support this kind of 'custom volume encryption'? Is there any work-around u know? Its just experimental, still I cant code any crypto stuff. – user3200534 Oct 23 '14 at 21:54
  • No kernel patch is going to magically add support for "custom" encryption for exactly the same reasons the vanilla kernel doesn't support this. There is no way the kernel is going execute a user space binary to encrypt block device data. – EricM Oct 23 '14 at 22:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.