View previous topic :: View next topic |
Author |
Message |
newguy
Joined: 24 Jun 2004 Posts: 1907
|
encryption of hex file |
Posted: Fri Nov 01, 2019 10:45 am |
|
|
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
|
|
Posted: Fri Nov 01, 2019 11:50 am |
|
|
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
|
|
Posted: Fri Nov 01, 2019 11:54 am |
|
|
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
|
|
Posted: Fri Nov 01, 2019 12:59 pm |
|
|
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
|
|
Posted: Fri Nov 01, 2019 1:16 pm |
|
|
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
|
|
Posted: Tue Nov 05, 2019 9:28 am |
|
|
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
|
|
Posted: Fri Nov 08, 2019 1:32 pm |
|
|
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. |
|
|
|