Encryption on janus recordings

I’m currently doing a recording SIP request which has Janus save the mjr file to my folder.
I was wondering where I could go about doing some kind of AES encryption on this file as it’s being written to which I could then decrypt at a later time.
I assume this is not a feature that currently exists but just wanted to know whereabouts in the code I could go tweak with to maybe get this working.

The RTP packets are unencrypted because janus-pp-rec needs to be able to process them and put the payloads in playable files. I guess that if you want to add your own encryption, you have to modify record.c (where we create mjr files and store RTP packets) and janus-pp-rec.c (where we read them). It sounds convoluted to me nevertheless: it may be easier to just put the mjr file in an encrypted .zip file or something like that, when it’s done, or simply use an encrypted file system mount to store the mjr files as they are.