I am a java beginner anyway, I have written this program that formats Military time that java returns to normal time, for example 1:01 PM instead of 13:01:00. To get to the point I ust created a blog a tumblr and I want to share this code and I know it sounds silly and sellfish but I want to learn to secure my code or stamp it somehow so people dont steal it?
1 Answer
Big question. It depends from the legal framework of your country.
Generally speaking you can start the long process to patent your system, but the simple code has not change (work around excluded) and it is quite expensive (for my patent we spent 12K€ more or less).
In Italy we have SIAE: we pay 120€ and we send a CD to an authority; the code will be protected for 5 years, but if a guy change the 20% of the original code .. it is another code.
:00, there isn't really anything to protect. But more generally, rely on the licenses. There's no way to reliably protect any code. Anyone could copy an entire book if they had the inclination and time. Other than that, consider why you're releasing it: if you want people to improve it (thus doing work for you) put as few restrictions on it as possible. Maybe public domain or lesser GPL.