Re: [jruby-user] Source Code Encryption

Keith Bennett <[email protected]> Sat, 9 May 2015 15:17:48 -0400
Newsgroups gmane.comp.lang.jruby.user
Message-ID <[email protected]>
--Apple-Mail=_652931C6-CED7-4A4E-9474-150A2EA6DD61
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

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 =
extension) 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 either.

- Keith



> On May 9, 2015, at 3:45 AM, Christian MICHON =
<[email protected]> wrote:
>=20
> Use jrubyc to compile your main ruby script to class files. That =
should do.
>=20
> On May 8, 2015 12:49 AM, "Doug Hathaway" <[email protected] =
<mailto:[email protected]>> wrote:
> You could perhaps encrypt the contents of the YML file, then decrypt =
before parsing.
>=20
> =E2=80=94
> Sent from Mailbox <https://www.dropbox.com/mailbox>
>=20
> On Thu, May 7, 2015 at 6:29 PM, Kengsreng Tang <[email protected] =
<mailto:[email protected]>> wrote:
>=20
> Karol,=20
>=20
> Do you know how to compile xxx.yml files ?=20
>=20
> --=20
> Posted via http://www.ruby-forum.com/ <http://www.ruby-forum.com/>.=20
>=20
> ---------------------------------------------------------------------=20=

> To unsubscribe from this list, please visit:=20
>=20
> http://xircles.codehaus.org/manage_email =
<http://xircles.codehaus.org/manage_email>=20
>=20
>=20
>=20
>=20


--Apple-Mail=_652931C6-CED7-4A4E-9474-150A2EA6DD61
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div class=3D"">Even with compiling, the resulting class =
files can be inspected (somewhat) with javap.</div><div class=3D""><br =
class=3D""></div><div class=3D"">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. &nbsp;Not at all like =
seeing the original source, but not at all encrypted either.</div><div =
class=3D""><br class=3D""></div><div class=3D"">- Keith</div><div =
class=3D""><br class=3D""></div><div class=3D""><br class=3D""></div><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
May 9, 2015, at 3:45 AM, Christian MICHON &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><p dir=3D"ltr" =
class=3D"">Use 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, "Doug Hathaway" =
&lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:<br type=3D"attribution" =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=3D"">You could perhaps encrypt the contents of the YML file, =
then decrypt before parsing.</div>
<div class=3D"">
<br class=3D"">=E2=80=94<br class=3D"">Sent from <a =
href=3D"https://www.dropbox.com/mailbox" target=3D"_blank" =
class=3D"">Mailbox</a>
</div>
<br class=3D""><br class=3D""><div class=3D"gmail_quote"><p class=3D"">On =
Thu, May 7, 2015 at 6:29 PM, Kengsreng Tang <span dir=3D"ltr" =
class=3D"">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank" =
class=3D"">[email protected]</a>&gt;</span> wrote:<br =
class=3D""></p><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><p class=3D"">Karol,
<br class=3D""><br class=3D"">Do you know how to compile xxx.yml files ?
<br class=3D""><br class=3D"">--=20
<br class=3D"">Posted via <a href=3D"http://www.ruby-forum.com/" =
target=3D"_blank" class=3D"">http://www.ruby-forum.com/</a>.
<br class=3D""><br =
class=3D"">---------------------------------------------------------------=
------
<br class=3D"">To unsubscribe from this list, please visit:
<br class=3D""><br class=3D"">    <a =
href=3D"http://xircles.codehaus.org/manage_email" target=3D"_blank" =
class=3D"">http://xircles.codehaus.org/manage_email</a>
<br class=3D""><br class=3D""><br class=3D""></p></blockquote></div><br =
class=3D""></blockquote></div>
</div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_652931C6-CED7-4A4E-9474-150A2EA6DD61--