It may be surprising for you, but it's very rare for it to be legal.
It's also almost never persecuted either, for obvious reasons. But totalitarian governments are usually not confident enough to officialize their money-movements. They usually claim to fight corruption with all their might.