I want to have a program like this:
scanf("%s", name);
scanf("%s", id);
scanf("%d", &age);
Now I want to write name
, id
and age
to a file, but the file should be encrypted, so that only my program can read back the data it wrote.
Do I need to use one of the encryption libraries mentioned here (they all are pretty heavy duty libraries, I just need to encrypt a text file), or is there any other simpler method?
If an encryption library is the solution, which one is best suited for a simple text file encryption?