Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Encrypting source code :(

by RonW (Parson)
on Jan 09, 2019 at 21:09 UTC ( #1228277=note: print w/replies, xml ) Need Help??


in reply to Re^2: Encrypting source code :(
in thread Encrypting source code :(

Offhand, I can think of 2 other possibilities:

Use pp to create the executable without encryption, then encrypt the result. To run the program, create a program or script that decrypts the encrypted executable, runs it, then cleans up.

If there is an acceptable Perl installation on the target system, use pp to create a PAR file, then encrypt the PAR file. In that case, create a program to decrypt the PAR file, run it. then clean up.

Replies are listed 'Best First'.
Re^4: Encrypting source code :(
by bliako (Vicar) on Jan 10, 2019 at 12:21 UTC

    Thanks RonW, I finally resorted to something like this but with my own 'PAR' which is basically a tar file with encrypted modules, which are decrypted in memory and eval'ed

    UPDATE: some discussion on module eval'ing regarding this issue: use of already eval()ed module (from string)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1228277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2019-10-18 18:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?