Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Encrypting source code :(

by RonW (Parson)
on Jan 09, 2019 at 21:09 UTC ( [id://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 (Monsignor) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1228277]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-26 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found