Re: [jruby-user] Source Code Encryption

Christian MICHON <[email protected]> Sat, 9 May 2015 21:49:01 +0200
Newsgroups gmane.comp.lang.jruby.user
Message-ID <CACx2yF-N_g-5+nxn6ToYNbBMxes_JEbExpyd7UEwuA1sYBxvjw@mail.gmail.com>
--001a11c3ecfeb5ecb50515ab6f44
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I agree but there's no way to really recover the original ruby script. At
best you'll retrieve what you listed and the string constants.

It's the easiest form of obfuscation I know for jruby.

If you have another suggestion, I will test it
On May 9, 2015 9:18 PM, "Keith Bennett" <[email protected]> wrote:

> Even with compiling, the resulting class files can be inspected (somewhat=
)
> with javap.
>
> If you run javap -v on the file (don=E2=80=99t included the .class extens=
ion) then
> you can see the method signatures and Java byte code instructions.  Not a=
t
> all like seeing the original source, but not at all encrypted either.
>
> - Keith
>
>
>
> On May 9, 2015, at 3:45 AM, Christian MICHON <[email protected]>
> wrote:
>
> Use jrubyc to compile your main ruby script to class files. That should d=
o.
> On May 8, 2015 12:49 AM, "Doug Hathaway" <[email protected]> wrote:
>
>> You could perhaps encrypt the contents of the YML file, then decrypt
>> before parsing.
>>
>> =E2=80=94
>> Sent from Mailbox <https://www.dropbox.com/mailbox>
>>
>>
>> On Thu, May 7, 2015 at 6:29 PM, Kengsreng Tang <[email protected]>
>> wrote:
>>
>>> Karol,
>>>
>>> Do you know how to compile xxx.yml files ?
>>>
>>> --
>>> Posted via http://www.ruby-forum.com/.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>> http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>
>

--001a11c3ecfeb5ecb50515ab6f44
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">I agree but there&#39;s no way to really recover the origina=
l ruby script. At best you&#39;ll retrieve what you listed and the string c=
onstants. </p>
<p dir=3D"ltr">It&#39;s the easiest form of obfuscation I know for jruby.</=
p>
<p dir=3D"ltr">If you have another suggestion, I will test it</p>
<div class=3D"gmail_quote">On May 9, 2015 9:18 PM, &quot;Keith Bennett&quot=
; &lt;<a href=3D"mailto:[email protected]">[email protected]</a=
>&gt; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div st=
yle=3D"word-wrap:break-word"><div>Even with compiling, the resulting class =
files can be inspected (somewhat) with javap.</div><div><br></div><div>If y=
ou run javap -v on the file (don=E2=80=99t included the .class extension) t=
hen you can see the method signatures and Java byte code instructions.=C2=
=A0 Not at all like seeing the original source, but not at all encrypted ei=
ther.</div><div><br></div><div>- Keith</div><div><br></div><div><br></div><=
br><div><blockquote type=3D"cite"><div>On May 9, 2015, at 3:45 AM, Christia=
n MICHON &lt;<a href=3D"mailto:[email protected]" target=3D"_blank=
">[email protected]</a>&gt; wrote:</div><br><div><p dir=3D"ltr">Us=
e jrubyc to compile your main ruby script to class files. That should do.</=
p>
<div class=3D"gmail_quote">On May 8, 2015 12:49 AM, &quot;Doug Hathaway&quo=
t; &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">dmh.dade@gma=
il.com</a>&gt; wrote:<br type=3D"attribution"><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex=
">
<div>You could perhaps encrypt the contents of the YML file, then decrypt b=
efore parsing.</div>
<div>
<br>=E2=80=94<br>Sent from <a href=3D"https://www.dropbox.com/mailbox" targ=
et=3D"_blank">Mailbox</a>
</div>
<br><br><div class=3D"gmail_quote"><p>On Thu, May 7, 2015 at 6:29 PM, Kengs=
reng Tang <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" tar=
get=3D"_blank">[email protected]</a>&gt;</span> wrote:<br></p><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex"><p>Karol,
<br><br>Do you know how to compile xxx.yml files ?
<br><br>--=20
<br>Posted via <a href=3D"http://www.ruby-forum.com/" target=3D"_blank">htt=
p://www.ruby-forum.com/</a>.
<br><br>-------------------------------------------------------------------=
--
<br>To unsubscribe from this list, please visit:
<br><br>    <a href=3D"http://xircles.codehaus.org/manage_email" target=3D"=
_blank">http://xircles.codehaus.org/manage_email</a>
<br><br><br></p></blockquote></div><br></blockquote></div>
</div></blockquote></div><br></div></blockquote></div>

--001a11c3ecfeb5ecb50515ab6f44--