So I'm doing some testing with data encryption per a course I'm taking in school (for this assignment we're meant to use only a Windows environment), and I'm able to use Windows built-in "cipher.exe" tool just fine for what we need to do.
I made a small .txt file (my plain text), and I encrypted it using "cipher /e PlainText.txt" which has no error. However, I want to be able to view the ciphertext as well. How would one go about doing this? I tried logging in as a user that didn't have the proper access to the file and instead of seeing ciphertext it just comes up blank saying "Access Denied".
Thank you for any ideas.
The way you open an encrypted file in order to read its raw encrypted contents (e.g. for a backup/restore application) is to use the:
OpenEncryptedFileRaw
,ReadEncryptedFileRaw
,WriteEncryptedFileRaw
, andCloseEncryptedFileRaw
api functions.
Writing the code on the fly, in a hypothetical hybrid language: