Make .txt file unreadable / uneditable

You can’t prevent the user from modifying the file. It’s their computer, so they can do whatever they want (that’s why the whole DRM issue is… difficult). Since you said you’re using the file to save an high-score, you have a couple of alternatives. Do note that as previously said no method will stop a … Read more

Why do seemingly empty files and strings produce md5sums?

The md5sum of “nothing” (a zero-length stream of characters) is d41d8cd98f00b204e9800998ecf8427e, which you’re seeing in your first two examples. The third and fourth examples are processing a single character. In the “echo” case, it’s a newline, i.e. $ echo -ne ‘\n’ | md5sum 68b329da9893e34099c7d8ad5cb9c940 – In the perl example, it’s a single byte with value … Read more

Will changing a file name affect the MD5 Hash of a file?

No, the hash is of the file contents only. You can see this in the source for md5sum and its MD5 implementation. You can also test this if you have access to md5sum: $ echo “some arbitrary content” > file1 $ cp file1 file2 $ md5sum file1 f0007cbddd79de02179de7de12bec4e6 file1 $ md5sum file2 f0007cbddd79de02179de7de12bec4e6 file2 $

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)