What algo or encoding method you want to use? When we talk about runtime then you must have encrypted strings in your binary and a function that will take the encrypted string and decrypt it. You don't need encrypting function inside a binary because that would be pointless. What you want to have is a code that has already encrypted strings and then you take that string -> decrypt it -> ready to use. Also, you need to think when you want to decrypt your function. Is it only when it's called or maybe at a specific moment during execution.