How to make file fake proof?

I have a (planned) commercial program that records a usage log. Under their license, users will be required to submit a journal to the company every few weeks. How can I guarantee that the file has not been modified?

The system is written in C # and Winforms or WPF.

Update: Hmm ... really surprised that How do I make a file forgery proof? considered an “exact copy” . What technique can protect a secret from a fully trusted user? In any case, the tribe spoke.

+2
source share
8 answers

As Ken pointed out, this is the same problem as DRM systems. They use various methods for storing keys where users cannot (easily) find them. You would combine a digital signature scheme with an overly complex key storage scheme. Divide it into several parts scattered around the user system - some parts in the registry, some in files in the file system, some encoded in the modification dates and file names of various innocent files. Also, making the DRM subsystem of your code intentionally unclear and difficult to debug.

Another alternative would be to periodically send the signature data to some remote system (if you can depend on having an Internet connection).

+1
source

DRM, .. , , ?

, , , , , ? . , , SOL.

( , , , , . . .)

+8

, , - , , , , .

, , . , , .

+5

, , . , .

, , - ? ( , ). , ...

, " ", "Ok" PGP . , , .

, - .

+4

, ?

, , / , , , , .

, , , , " " - .

+3

, . , , , . Nothing. ( ).

, ( , , , ).

+2

- , .

MD5, , "", ( , , ). , , .

+2

, ? , , - .

+2

Source: https://habr.com/ru/post/1729848/


All Articles