-7

Is it possible to hide information somewhere in a file? For example, I need to save a GUID with each file to make it unique.

Charles
  • 50,010
  • 13
  • 100
  • 141

2 Answers2

4

I haven't tried them my self but you can try using NTFS Alternate Data Streams - .NET

Hope this helps

Community
  • 1
  • 1
mortb
  • 8,662
  • 3
  • 24
  • 39
  • I was about to suggest that. I've done that, and it seems like a possible solution. Bear in mind ADS only work on NTFS - if a file is copied to a FAT32 drive (say disk on key) or sent over the network, the alternate streams will be stripped. – eran Jun 29 '12 at 12:18
  • 1
    Also you can execute command line process for adding hidden data: `ECHO "Hidden text" > ordinary_file.txt:hidden.txt` – Agnius Vasiliauskas Jun 29 '12 at 12:27
  • ...and to view hidden ADS with notepad: `NOTEPAD ordinary_file.txt:hidden.txt` – Agnius Vasiliauskas Jun 29 '12 at 12:29
0

If you are wanting to write encrypted data to a text file then this MSDN article explains what to do step by step: http://support.microsoft.com/kb/307010

Kane
  • 16,027
  • 11
  • 59
  • 84