serialization - Protect the Serializeable File from Copying (Java Program) -


I have a Java program that has expired and can be used only X times the serializable file The date ended with the X and X are read. I have encrypted the file with DES. The problem is how to protect that file by copying that file? Example problem: For the first time, my program with Datasair (A) in User A, which includes the price, how many times it can open its program (50 times). Then he can save that Data.ser (B) to copy Data.ser (A) to another folder. After using my program 49 times, he copies Data.ser (B) to replace Data.ser (A)), then he can open his program again 50 times. How to stop it?

Now I can only hide the file in a separate folder (like C: \ Windows \ rds) but if the user finds that file, the user can copy that file.

Is there a way to ensure that the serial accessable file? Or is there a better way to save on the expiry date of that time and how many times can be opened for that program?

Thanks ...


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -