Does anybody know of any source code available which gives access security for software i.e. I have written some code but want to make sure it won't be copied and used without some sort of security code (I'm sure people will get round it though )

I'm just looking for ideas on how to do it really.

Thanks in advance

Dave