That will depend on the type of file first and foremost... if the file format does not have any non-functional space in it (meta-data slots), or space that can be re-purposed as such (low-order bits of image data), then you may be out of luck.
Also note that although you can come up with some scheme to encode this kind of information into files of certain types, there is no way to be absolutely certain that it cannot be taken out again by someone that knows what they are looking for (that is: I wouldn't bet the house on it being a fool-proof watermark).
If all you care about is having something that works most of the time, for a file format that has the space available, do something like you suggested, take a hash of the information so it is not immediately recognisable, and then put it into an available space inside your file format.