Re: [jruby-user] Source Code Encryption
Christian MICHON <[email protected]> Sat, 9 May 2015 21:51:34 +0200
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CACx2yF90iwdKp=tA6kWT2rx01hAmWO2GfKKtontFOJ6kLTBoFA@mail.gmail.com> |
--001a11c3799ad4f8640515ab78e1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I almost forgot... Have a look at jd-gui if you're using Windows. You'll get a much better java decompilation than what you suggested. On May 9, 2015 9:49 PM, "Christian MICHON" <[email protected]> wrote: > 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 exten= sion) >> then you can see the method signatures and Java byte code instructions. >> Not at all like seeing the original source, but not at all encrypted eit= her. >> >> - 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 >> do. >> 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 >>>> >>>> >>>> >>> >> --001a11c3799ad4f8640515ab78e1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">I almost forgot... Have a look at jd-gui if you're using= Windows. You'll get a much better java decompilation than what you sug= gested. </p> <div class=3D"gmail_quote">On May 9, 2015 9:49 PM, "Christian MICHON&q= uot; <<a href=3D"mailto:[email protected]">christian.michon@gma= il.com</a>> 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= "><p dir=3D"ltr">I agree but there's no way to really recover the origi= nal ruby script. At best you'll retrieve what you listed and the string= constants. </p> <p dir=3D"ltr">It'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, "Keith Bennett"= ; <<a href=3D"mailto:[email protected]" target=3D"_blank">keithrbe= [email protected]</a>> wrote:<br type=3D"attribution"><blockquote class=3D= "gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding= -left:1ex"><div style=3D"word-wrap:break-word"><div>Even with compiling, th= e resulting class files can be inspected (somewhat) with javap.</div><div><= br></div><div>If you run javap -v on the file (don=E2=80=99t included the .= class extension) then 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 either.</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, Christian MICHON <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:</div><br><div><= p dir=3D"ltr">Use jrubyc to compile your main ruby script to class files. T= hat should do.</p> <div class=3D"gmail_quote">On May 8, 2015 12:49 AM, "Doug Hathaway&quo= t; <<a href=3D"mailto:[email protected]" target=3D"_blank">dmh.dade@gma= il.com</a>> 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"><<a href=3D"mailto:[email protected]" tar= get=3D"_blank">[email protected]</a>></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> </blockquote></div> --001a11c3799ad4f8640515ab78e1--