How to check if custom ROM supports encryption?
I you would install a custom rom you can ask the maintainer of your rom, usually all custom roms from Android 5 and above Support it, nur maybe your device doesnt Support it in a custom rom. Normally the maintainer of your rom wrote a bug list in the XDA Thread, if that's too uncertain ask the maintainer.