Interesting thoughts. Encrypting dna molecules is possible, but it probably wouldn't use a virus. Also, if your cell's DNA was changed like this, it would kill you very quickly, interfering with normal cellular function.
A better strategy would be to target the gametes and encrypt these only. Now if you want to be unsterilized you have to pay.
Maybe it could a contraceptive method.