CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

encryption of hex file

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

encryption of hex file
PostPosted: Fri Nov 01, 2019 10:45 am     Reply with quote

Question for the masses. Back in 2011 CCS announced that they added the capability of encrypting a hex file which CCSLoad and, for example, an ICD-U64 would seamlessly load, decrypt, and program the PIC. See here: https://www.ccsinfo.com/newsdesk_info.php?newsPath=ALL&newsdesk_id=134

I can't seem to find any documentation for this feature anywhere. Has anyone used it, and can you point me to any instructions for doing so?
temtronic



Joined: 01 Jul 2010
Posts: 9221
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Nov 01, 2019 11:50 am     Reply with quote

I was interested, so I read the info at the 'link'... If I read 'between the lines', the programmer still 'burns the PIC' with real ML code, not encrypted ?
If so , I can easily get the program....

Jay
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Fri Nov 01, 2019 11:54 am     Reply with quote

You can get the program, I can get the program, the people who this is meant for absolutely will not get the program.

It's just meant as a roadblock that they won't be able to overcome without paying someone to do it for them, and there's very little chance of that.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Nov 01, 2019 12:59 pm     Reply with quote

If you run CCSLoad and then expand the Options section by clicking on
the little box with '<<' in it, then it shows a little safe with a combo lock
and it says "Encrypt Hex File". That's all I can find.
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Fri Nov 01, 2019 1:16 pm     Reply with quote

Thanks PCM. Will test this weekend and report back here for posterity once I know more.
allenhuffman



Joined: 17 Jun 2019
Posts: 552
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

PostPosted: Tue Nov 05, 2019 9:28 am     Reply with quote

newguy wrote:
Thanks PCM. Will test this weekend and report back here for posterity once I know more.


I'll be looking forward to what you find, as well. Encrypting our firmware updates is on the TO DO list.

Does this look like general encryption, or something that can be locked to the specific user? I just tested this, and see the encrypted file, but could read it back as unencrypted since I have not set any #fuse options to prevent that.

Encrypting would prevent someone from inspecting your code, I suppose (at least being able to look at it as assembly code), but unless this is tied to the specific end-target, they could still pass the file around, couldn't they?
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Fri Nov 08, 2019 1:32 pm     Reply with quote

Sorry it took so long to reply. As PCM pointed out, CCSLoad's Options tab on the main screen, hit the "<<" button, look for the safe icon "Encrypt Hex File". CCSLoad then uses that to program your PIC. Very simple.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group