Hi everyone,
I’m currently working on a feature where users download digital content,
but I’d like to encrypt the content before it’s delivered to them.
The encryption process itself is working fine,
but I’d prefer to manage it as part of an addon.
I’ve found a certain point to insert my encryption logic, but it looks like there aren’t any hooks availabe there…
In this case, what would be the best approach?
Ideally, I’d like to keep everything within the addon,
but if there’s no other way, I’m considering modifying the core source directly.
Specifically, I’m looking at the following file:
app/functions/fn.fs.php
Around line 340, inside the function:
function fn_get_file($file_path, $filename = '', $delete = false)
I’d like to add the encryption logic near the beginning of this function.
I’ve checked other functions used within it, and also the ones leading up to it,
hoping to find a hook somewhere along the way, but no luck so far.
If anyone has advice or suggestions, I’d really appreciate it!