The only way to truly hide code is to not give the code to the person
you don't want to see it.  Even languages like C have decompilers. If
you truly need to prevent people from seeing code, then your only real
option is to run a server and distribute a client that connects to the
server.  If all you need to is to discourage casual lookers from
seeing the source, then you only need something like Acme::Bleach.
Yes, you can unbleach the code, but it takes effort and knowledge and
with those no code is safe behind any form of obfuscation (including
compilation to binary).

If you are trying to hide the code because you are distributing
secrets (like passwords, api keys, etc) in your code, then you have a
fundamental design issue that needs to be fixed.

On Mon, Jan 14, 2019 at 12:56 AM Uday Vernekar <vernekaru...@gmail.com> wrote:
>
> Nobody is very smart :) so only we want him not to see the code..we tried 
> bleach as well..one can see the code by replacing end of  first line of 
> bleached code with print and after executing we can see the code.
>
> On 11-Jan-2019 6:29 pm, "David Mertens" <dcmertens.p...@gmail.com> wrote:
>>
>> How dumb is your "nobody"? Would Acme::Bleach do the trick? Or something 
>> similar?
>>
>> :)
>>
>> On Fri, Jan 11, 2019, 5:01 AM Uday Vernekar <vernekaru...@gmail.com wrote:
>>>
>>> Hi all,
>>>
>>> I have a perl code which I need to covert to binary so that nobody can see 
>>> the code.
>>>
>>> we used pp package to make the perl code binary but here the user can see 
>>> the code which gets created in tmp.
>>>
>>> Need help if anybody knows kindly reply
>>>
>>> With regards
>>> Uday V G

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to