OP, as I understood, you can encrypt a file, for example where you have stored your seed phrases but what if someone forces you to open your Electrum wallet? How will your tool help in this case? I guess, it's very limited to encrypting some files but it can't help with the actual software wallets that we use.
I assume that attacker using $5 wrench to get your money doesn’t care which wallet it comes from. They show you the number written on paper, and it becomes your problem to choose between your life and your money. Given common sense, most people will choose life you don’t need money in the afterlife.
You are not guaranteed to live after giving attacker your money. If they are psychos, they'll kill you anyway, after sending them your coins, just for fun (that's fun for them) and if they aren't killers, there is a chance they won't kill you even if you don't send them your coins.
I know it sounds crazy but I wouldn't send them my coins, even if they could potentially kill me. The thing is, I don't obey, that's my principle, to do not show a weakness and secondly, I believe they might kill me anyway, so why should I benefit them? God knows what's in their mind.