I need to Encrypt a word file and to do so i need to not just read the text of the word file beacuse it may contain also images so i need to get the Word Doc or Docx content as bytes then encrypt them and then create a new file with a new extension say DocSec and write the bytes to this file.
My qestion is: is it possible to read the content of word doc\x with File.ReadAllBytes so it will take into consideration also images?
If not what is the recommended way to do so?
Of course you can with any file.
All kind of file are a sequence of bytes.
To encrypt steps are
Now MS Word can't read anymore your file.
Now you can open it with MS Word.
Full example on CodeProject File Encryption and Decryption in C#