I don't know how. But most likely, I recommend simply using licensed crypto wallets that have passed some security checks - Atomic, Trust,Ownr, Exodus.
There are other better wallets than those. There are those open and closed source wallets that are being used aside from those.
For me, these are the 2 best ways to secure. Hardware wallet and paper wallet. Personally, I've been using a hardware wallet for a long time and haven't had a problem yet. I recommend ...
I second the suggestion about hardware wallets, they're one of the best but for bitcoin, there are those desktop wallets like Electrum, Samourai Wallet and Wasabi Wallet.