In general, a wallet works with private keys, which each user will be assigned by the wallet’s developer. While these are generally secure, someone could steal your digital coins if they get access to your private key. This is why online wallets tend to be a less secure option, as it’s easier for hackers to steal private keys from them, rather than on a hardware wallet where the data is stored offline.