Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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 (Prior) 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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-01-25 00:38 GMT
Find Nodes?
    Voting Booth?