Encrypt specific log files

As per our research scenario there are some log files that are needed to be encrypted on the raspberry pi 4 platform. Can someone share the APIs that related to this with how to configure it if there any possibility.
I’m a new user of this zymbit product.

I just need to encrypt some files. So I just saw a research group encrypted some files by encrypting the data into binary and then to hexadecimal by using the Zymkey SE.
Please can someone share the sample code for that scenario if you have that kind of a python code then I will manage it related to mine.