Obfuscate/prevent source code in temporary src directory

159 views
Skip to first unread message

Sherard Hall

unread,
Jul 6, 2013, 8:51:26 PM7/6/13
to ruby...@googlegroups.com
From the ocra website http://ocra.rubyforge.org/ it states:

When executed, the OCRA stub extracts the Ruby interpreter and your scripts into a temporary directory. The directory will contains the same directory layout as your Ruby installlation. The source files for your application will be put in the ‘src’ subdirectory.

How can one prevent the source code from being exposed during runtime? If ocra can't do this what tool can for building standalone ruby scripts?

Crossing fingers some option in ocra can prevent this, awesome tool. 

atkaaz

unread,
Jul 6, 2013, 8:57:31 PM7/6/13
to ruby...@googlegroups.com
why would you want to obfuscate the code?


--
You received this message because you are subscribed to the Google Groups "OCRA One-Click Application Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ocra+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sherard Hall

unread,
Jul 6, 2013, 9:01:30 PM7/6/13
to ruby...@googlegroups.com
Guess poor choice of words, I'd like to prevent others viewing the source when distributing to others.

atkaaz

unread,
Jul 6, 2013, 9:04:03 PM7/6/13
to ruby...@googlegroups.com
Not sure I understand, but why do you want to prevent some people from viewing the source ?

Sherard Hall

unread,
Jul 6, 2013, 9:09:53 PM7/6/13
to ruby...@googlegroups.com
It's not meant to be an open source project. Did I miss a license agreement with ocra that states I have to provide the source?

atkaaz

unread,
Jul 6, 2013, 9:15:05 PM7/6/13
to ruby...@googlegroups.com

atkaaz

unread,
Jul 6, 2013, 9:27:30 PM7/6/13
to ruby...@googlegroups.com
from that article, looks like maybe you want this: http://rubyencoder.com/overview.html
unless you found something else.
Good luck.

Sherard Hall

unread,
Jul 6, 2013, 9:35:14 PM7/6/13
to ruby...@googlegroups.com
Thanks will read.

David Simon

unread,
Jul 6, 2013, 10:52:04 PM7/6/13
to ruby...@googlegroups.com

The nature of ruby makes it very difficult to conceal your program's source code if you distribute it to your users. You could, at best, and after a great deal of annoying work, create an obfuscation scheme that would slow down a developer trying to figure out your app for maybe a few days, less if they've done reverse engineering before.

If keeping your source code secret is important, then implement your app as a web service, not a standalone desktop application.

--

Maciej Stańczyk

unread,
Sep 18, 2017, 12:06:54 AM9/18/17
to OCRA One-Click Application Builder
You can achieve your goal in 3 steps:
1. Write your program in ruby (one folder)
2. Use RubyEncryptor (create new encrypted folder)
3. Use ocra on RubyEncoder (remember to add ruby encoder libs):
a) if want to use individual licenses for each customer use ocra with inno5 option
b) if want only to protect your code
Reply all
Reply to author
Forward
0 new messages