How can I prevent my game/app to be cracked?

I once saw a protection method where you needed a special floppy disk that had a enable-code written in the boot-sector.

Anyhow, does somebody now any good protection methods/ideas?