Post Reply 
Hide and protect source code in HP Prime
05-06-2015, 12:46 PM
Post: #1
Hide and protect source code in HP Prime
Hi,

I am new to this forum. Have just bought the HP Prime a week ago mainly for its programming features. I have used a Casio 9860G for the past 6 years.

Is there a way to hide and protect the source code when we put these into the calculator? I would like to share some programs with my colleagues but some codes are sensitive and I would like to avoid people looking into the actual source.

Is there a way to achieve this?

Thanks
Find all posts by this user
Quote this message in a reply
05-06-2015, 01:24 PM
Post: #2
RE: Hide and protect source code in HP Prime
Not to be a spoiler, but while your code may be a secret (known only to you), it is known otherwise: Ecclesiastes 1:9. If you share it, others might benefit, if you don't, still others already knew it, know it, or will know it. So profit if you can, but don't be too disappointed if the path to your door is not so well beaten.

On the other hand, great customer service has it's rewards: source code is visible in the Prime.
Find all posts by this user
Quote this message in a reply
05-06-2015, 07:30 PM
Post: #3
RE: Hide and protect source code in HP Prime
You need a 50G to have your programs stored as binary objects. Unfortunately the Prime does not have that capability yet.
Find all posts by this user
Quote this message in a reply
05-06-2015, 11:36 PM
Post: #4
RE: Hide and protect source code in HP Prime
Thanks John for that info.
Find all posts by this user
Quote this message in a reply
05-07-2015, 01:07 PM
Post: #5
RE: Hide and protect source code in HP Prime
(05-06-2015 11:36 PM)raider Wrote:  Thanks John for that info.

You can try to obfuscate the code with primecomm, open your hpprgm, send to menu -> preferences, enable additional processing, obfuscate,remove comments, compress spaces and remove line breaks. Then, send to menu again and "browse destination" to export the obfuscated version.

My website: erwin.ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
05-07-2015, 10:10 PM
Post: #6
RE: Hide and protect source code in HP Prime
(05-07-2015 01:07 PM)eried Wrote:  
(05-06-2015 11:36 PM)raider Wrote:  Thanks John for that info.

You can try to obfuscate the code with primecomm, open your hpprgm, send to menu -> preferences, enable additional processing, obfuscate,remove comments, compress spaces and remove line breaks. Then, send to menu again and "browse destination" to export the obfuscated version.

Thanks eried. I did not know this and this would be useful.
Find all posts by this user
Quote this message in a reply
05-08-2015, 03:15 AM (This post was last modified: 05-09-2015 06:23 AM by bobkrohn.)
Post: #7
RE: Hide and protect source code in HP Prime
(05-07-2015 01:07 PM)eried Wrote:  You can try to obfuscate the code with primecomm, open your hpprgm, send to menu -> preferences, enable additional processing, obfuscate,remove comments, compress spaces and remove line breaks. Then, send to menu again and "browse destination" to export the obfuscated version.

When I saved the file and opened it back up it looked exactly the same.
With all the blank lines, comments, etc, etc
Find all posts by this user
Quote this message in a reply
05-08-2015, 04:35 AM (This post was last modified: 05-08-2015 04:37 AM by eried.)
Post: #8
RE: Hide and protect source code in HP Prime
(05-08-2015 03:15 AM)bobkrohn Wrote:  When I saved the file and opened it back up it looked exactly the same.
With all the blank lines, comments, etc, etc

Do not save it, send it using the "send" menu to a folder

My website: erwin.ried.cl
Visit this user's website Find all posts by this user
Quote this message in a reply
05-09-2015, 06:25 AM
Post: #9
RE: Hide and protect source code in HP Prime
that's what I meant.
Nothing is in the Folder after selecting the Folder.
Find all posts by this user
Quote this message in a reply
05-09-2015, 06:39 AM (This post was last modified: 05-09-2015 06:39 AM by Steve Simpkin.)
Post: #10
RE: Hide and protect source code in HP Prime
(05-09-2015 06:25 AM)bobkrohn Wrote:  that's what I meant.
Nothing is in the Folder after selecting the Folder.

Well there you go. You can't get any more hidden than that Smile
Find all posts by this user
Quote this message in a reply
05-09-2015, 02:04 PM (This post was last modified: 05-10-2015 05:27 AM by bobkrohn.)
Post: #11
RE: Hide and protect source code in HP Prime
Ahhhh!

Actually, the program says "sending files..." and that stays on the screen endlessly. But nothing happens.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)