How to encrypt/ hide a code in pdf?
Copy link to clipboard
Copied
i want to encrypt/ hide a javasctipt code in pdf so others can't see the code.
can i do this task?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
No, your code can be viewed in seconds. And obfuscation can be unravelled.
Copy link to clipboard
Copied
"obfuscator.io"
Don't do this unless you have complete control over the document distribution environment, a PDF containing obfuscated JavaScript is systematically detected as "malicious" by anti-virus software and email servers, and therefore eliminated.
Acrobate du PDF, InDesigner et Photoshoptographe
Copy link to clipboard
Copied
"No, your code can be viewed in seconds. And obfuscation can be unravelled."
Taking over a script created by someone else is always difficult, even if it is well commented and the variables are carefully named.
So taking over a script without comments and with anonymous variables is not impossible but I wish you good luck, in general it is faster to recreate one yourself.
Acrobate du PDF, InDesigner et Photoshoptographe
Copy link to clipboard
Copied
In my documents I minimize the JavaScripts (https://www.toptal.com/developers/javascript-minifier), in order to make them difficult to decrypt without triggering antivirus software.
When I have reasons to be suspicious, I add kilometers of useless code to drown the essential in the mass.
In French we said "Noyer le poisson" (Drown the fish).
Acrobate du PDF, InDesigner et Photoshoptographe

