Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

what's mean Options for specifying or deriving the key?

by serpino (Initiate)
on Nov 16, 2017 at 02:20 UTC ( [id://1203540]=perlquestion: print w/replies, xml ) Need Help??

serpino has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I'm trying to encrypt perl script by using Filter::Crypto package with strawberry perl.

So I'm installing refered "https://metacpan.org/pod/Filter::Crypto#INSTALLATION"

I can see "Options for specifying or deriving the key?" while installing Filter::Crypto?

there are 4 options.

1 Enter a password when prompted

2 Have a password randomly generated

3 Enter a key when prompted

4 Have a key randomly generated

the default install setting is 2.

when I sellect 1, I have to input password like 1234.

But after finishing to install, There are no different to selecting 2.

If when I sellect 3, I have to input key value. But I can't pass to next step because command console requires to input key continuously.

Finally, I want the encrypted perl file can't decrypt on other PC.

So I guess upper key or password setting is for that can't decrypt on other PC.

Could you please explain this?

Best Regards,

serpino.

  • Comment on what's mean Options for specifying or deriving the key?

Replies are listed 'Best First'.
Re: what's mean Options for specifying or deriving the key? -- hide/crypt perl code
by Discipulus (Canon) on Nov 16, 2017 at 08:47 UTC
    Hello serpino and welcome to the monastery and to wonderful world of Perl!

    I never used this module, so I cannot directly answer to all your questions, but, just in case you are not aware of it, I want to advice you on the not assured code hiding you are trying.

    I know, from wise monks posts (see Re^3: Code hiding in Perl by afoken) that you can never hide or crypt perl code. Infact even the module that you are using need to decrypt the the code before passing it to the compiler. It's like what happen with music: if you can play it you can also copy it.

    From Filter::Crypto documentation, under warning:

    > In general, it is hopeless to try to prevent everyone from getting at the source code, ...

    > This technique can never completely hide the original unencrypted source code from people sufficiently determined to get it

    > Perl source code decryption filters work by intercepting the source stream (read from the encrypted file) and modifying it (in this case, decrypting it) before it reaches the Perl parser. Clearly, by the time the source reaches the parser it must be decrypted, otherwise the script cannot be run

    The above advice is just to be sure yo are not doing a lot of work with no possibilities of a true success.

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
Re: what's mean Options for specifying or deriving the key?
by Anonymous Monk on Nov 16, 2017 at 02:57 UTC

    But after finishing to install, There are no different to selecting 2.

    Hi, how did you finish to install, what did you do exactly ?

    Finally, I want the encrypted perl file can't decrypt on other PC.

    From what I understand, as long as you don't ship CryptFile.so or CryptFile.dll, or share CipherConfig.h, it won't decrypt (or run) on other PC.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1203540]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-24 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found