Encrypt second partition

Hello, one question, for security reasons i need to encrypt the scripts in the second partition. How can i do that??

i understand that the easy way must be to encrypt the partition, but i dont know how.

dietpi has some software to do that???

Thank u in advance.