Answer the question
In order to leave comments, you need to log in
C++ How to permanently delete a file?
I'm looking for a way, or rather a code or a library for C ++ so that you can delete a file without the possibility of recovery.
OS: Win, Mac
Thanks!
Answer the question
In order to leave comments, you need to log in
If for you clogging the entire file with random bytes gives an insufficient guarantee, then store such files on a USB flash drive, and use not C ++, but a hammer and an oven to delete them. SSD at any time of wiping can reassign memory areas so that neither 1 nor 101 times will overwrite information.
I solved this problem by rubbing the file 7 times (you open the file and write there) with random values.
The states even have a document, such as "secret information must be deleted like this." If necessary, I will throw off the code under Win
Isn't it easier to open, fill with random bytes, close and delete with regular means?
agmt , if our file is encrypted, then we can read and write data ... but for example, we will not be able to open a .doc file i.e. we need to first decrypt it, save it and only then open it.
e-nigma has certificates for cryptography, that it complies with GOST and there are no bookmarks in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question