Programs such as Serial Key Generator can be very useful for this function. One of the most secure and most widespread methods to avoid illegal copies is to use serial numbers without which the program will not work. When developing an application one of the problems that a programmer may encounter is having to protect his/her application against piracy.