I hear you, but the idea is to just port the encryption / decryption functions and leave the javascript out.
I guess that having post-run hooks script would be a fair tradeoff too, but as somebody already pointed out it seems there is no support for them either.
It’s interesting that the question came from a user from the hugo-encryptor project.