The situation is the following, for certain short latex files, I embed the source in the PDF it self. That can save me time in an emergency if I need to modify the source of a PDF without having to look for the original source (which can be in a different computer far away). This is no rocket science, I simply do:
\documentclass{article}
\usepackage{embedfile}
\embedfile{myself.tex}
However in certain situations I don't want other people that have the PDF to look at the Latex source, (for example because of all the comments. Think of a CV)
Of course I can encrypt the embedded file
zip myself.zip --encrypt myself.tex
and use
\embedfile{myself.zip}
(note: in reality I have to change the extension .zip to something else because Acrobat refuses to open embedded zip files)
But then I have to run the external command each time (and also suffer from the interactive zip password input).
Something like this would be ideal if exists but I am open to other possibilities:
\embedfile[password=aaa]{myself.tex} %not working code
I don't want the ultimate security but only a layer of hiding of the embedded file.
This can be also useful for embedding other related material, like original graphics or original data tables, etc. not just tex sources.
myself.tex
file and then embed it in the PDF. You can encrypt thetex
file in either ASCII (myself.tex.asc
-- bigger size but portable) or binary (myself.tex.pgp
-- smaller size) formats.