<div class="gmail_quote">On Fri, Nov 18, 2011 at 11:17 AM, Max gmail <span dir="ltr">&lt;<a href="mailto:maxskywalker1@gmail.com">maxskywalker1@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Thank you.  This will work perfectly.<br>
<div class="HOEnZb"><div class="h5"><br>
On Nov 18, 2011, at 11:58 AM, Prasad, Ramit wrote:<br>
&lt;snip&gt;<br>&gt;<br>
&gt; Any file will eventually be able to be reverse engineered, but it matters how much effort you care to obfuscate it. The way you can do it will vary based on your OS.<br>
&gt;<br>
&gt; For Windows, you can change the file extension to something that is not read by most text editors &#39;.zxy&#39;. It will still be able to be read if they try and open it with a text editor, but double clicking  will not work by default. You can also try setting the file attribute directly: <a href="http://code.activestate.com/recipes/303343-changing-file-attributes-on-windows/" target="_blank">http://code.activestate.com/recipes/303343-changing-file-attributes-on-windows/</a><br>


&gt;<br>
&gt; For *nix/OS X, you can prepend the file with &quot;.&quot; as those files are hidden by default on most *nix systems I have used. You can also try to use os.chmod(0###, &#39;filename&#39;).<br>
&gt;<br>
&gt;<br>
&gt; Keep in mind that all of these solutions are probably user reversible since the application will have the permissions of the user account it is run as; in most cases this is the same as the logged in user.<br>&lt;snip&gt;</div>

</div></blockquote><div><br></div><div>As an addition, you can also create the file using the zipfile module (<a href="http://docs.python.org/library/zipfile.html" style="background-color: transparent; ">http://docs.python.org/library/zipfile.html</a>). This adds another layer of obfuscation and has the added benefit of making your files smaller. Of course, the savvy user won&#39;t have any issue getting past this (Office files are just archive files). On Ubuntu at least, if you just remove the extension then it will attempt to discover what the filetype, and can usually guess archive types.</div>

<div><span style="background-color: transparent; "><br></span></div><div><span style="background-color: transparent; ">It&#39;s security through obscurity, of course, so it all depends on who you&#39;re worried about accessing this data.</span></div>

<div><span style="background-color: transparent; "><br></span></div><div><span style="background-color: transparent; ">HTH,</span></div><div><span style="background-color: transparent; ">Wayne</span></div></div>