Re: [jruby-user] Re: Source Code Encryption
Christian MICHON <[email protected]> Mon, 11 May 2015 22:46:37 +0200
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CACx2yF-Jpv0f3S+HUrbonjhFYgrGV0TZx4yGPssJaPTuko52vw@mail.gmail.com> |
--001a11c3799a6806500515d479f4 Content-Type: text/plain; charset=UTF-8 I'm not the creator of this thread, but I believe settings should be part of a configuration file instead of being in the code itself. Database.yaml in rails is a typical example of such approach. On May 11, 2015 6:05 PM, "Tim Uckun" <[email protected]> wrote: > Why don't you just put your settings in a .rb file? > > On Mon, May 11, 2015 at 10:36 PM, Christian MICHON < > [email protected]> wrote: > >> No jrubyc will only compile ruby files, ie .rb files. >> >> If you wish to preserve the yaml content, I would suggest to simply >> encrypt it with ruby-rc4 (why not?) and obfuscate the string used as key >> through a dictionary. That would do. >> >> So in total: >> - compile all rb files into class files using jrubyc >> - encrypt yaml and xml with ruby-rc4, and obfuscate the key within a >> dictionary. >> >> If you need more dedicated help, just point me to a git repository. ;-) >> >> >> On Mon, May 11, 2015 at 7:58 AM, Kengsreng Tang <[email protected]> >> wrote: >> >>> Hi Christian, >>> >>> Is Jrubyc can compile yaml file? >>> >>> -- >>> Posted via http://www.ruby-forum.com/. >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >>> >> >> >> -- >> Christian >> > > --001a11c3799a6806500515d479f4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">I'm not the creator of this thread, but I believe settin= gs should be part of a configuration file instead of being in the code itse= lf.</p> <p dir=3D"ltr">Database.yaml in rails is a typical example of such approach= . </p> <div class=3D"gmail_quote">On May 11, 2015 6:05 PM, "Tim Uckun" &= lt;<a href=3D"mailto:[email protected]">[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 dir=3D"ltr">Why= don't you just put your settings in a .rb file?<br></div><div class=3D= "gmail_extra"><br><div class=3D"gmail_quote">On Mon, May 11, 2015 at 10:36 = PM, Christian MICHON <span dir=3D"ltr"><<a href=3D"mailto:christian.mich= [email protected]" target=3D"_blank">[email protected]</a>></span> w= rote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde= r-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">No jrubyc will onl= y compile ruby files, ie .rb files.<div><br></div><div>If you wish to prese= rve the yaml content, I would suggest to simply encrypt it with ruby-rc4 (w= hy not?) and obfuscate the string used as key through a dictionary. That wo= uld do.</div><div><br></div><div>So in total:</div><div>- compile all rb fi= les into class files using jrubyc</div><div>- encrypt yaml and xml with rub= y-rc4, and obfuscate the key within a dictionary.</div><div><br></div><div>= If you need more dedicated help, just point me to a git repository. ;-)</di= v><div><br></div></div><div class=3D"gmail_extra"><div><div><br><div class= =3D"gmail_quote">On Mon, May 11, 2015 at 7:58 AM, Kengsreng Tang <span dir= =3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">list= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote"= style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi= Christian,<br> <br> Is Jrubyc can compile yaml file?<br> <div><div><br> --<br> Posted via <a href=3D"http://www.ruby-forum.com/" target=3D"_blank">http://= www.ruby-forum.com/</a>.<br> <br> ---------------------------------------------------------------------<br> To unsubscribe from this list, please visit:<br> <br> =C2=A0 =C2=A0 <a href=3D"http://xircles.codehaus.org/manage_email" target= =3D"_blank">http://xircles.codehaus.org/manage_email</a><br> <br> <br> </div></div></blockquote></div><br><br clear=3D"all"><div><br></div></div><= /div><span><font color=3D"#888888">-- <br><div>Christian<br></div> </font></span></div> </blockquote></div><br></div> </blockquote></div> --001a11c3799a6806500515d479f4--