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

Encrypted algorithm question
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



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

View user's profile Send private message

PostPosted: Fri Jul 11, 2025 6:12 pm     Reply with quote

so.. you're saying the raw datastream from the RF section output is not encoded.
That means it'll be dead simple to decode !
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Fri Jul 11, 2025 6:49 pm     Reply with quote

There is no real-time changing key. If the raw data changes, the RF output data changes. If the raw data is constant, the RF output data is constant. I published the Excel on the top page. What do you think about encryption?
temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 4:48 am     Reply with quote

Well there has to be some sort of 'rolling' key process going on otherwise, every 'stop' keypress would result in the same 64 bits of data. You've posted 20+ 'STOP' data and they're all different.
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 5:14 am     Reply with quote

temtronic wrote:
Well there has to be some sort of 'rolling' key process going on otherwise, every 'stop' keypress would result in the same 64 bits of data. You've posted 20+ 'STOP' data and they're all different.


What does the encryption method here remind you of? Is it possible that it is keeloq? Is it really difficult to decipher this encryption?
temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 6:34 am     Reply with quote

1) it reminds me that 'rolling key' encryptions are a real pain ! They were specifically designed to be VERY DIFFICULT to 'hack'.

2) it might be, but no way to tell, unless you acquire 65,000 same key pressed data, then look for the 'start over point'

3) yes, as we've stated before you don't KNOW the encryption algorithm AND you don't KNOW the key.

Just because a PIC was used for the remote, there's no reason that KEELOQ was used. Think of it this was. Guys buy cars....they rip out the OEM radio, put in some aftermarket unit.....

Is it possible to 'reverse engineer' the remote to get the encryption. Yes.
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 6:44 am     Reply with quote

temtronic wrote:
1) it reminds me that 'rolling key' encryptions are a real pain ! They were specifically designed to be VERY DIFFICULT to 'hack'.

2) it might be, but no way to tell, unless you acquire 65,000 same key pressed data, then look for the 'start over point'

3) yes, as we've stated before you don't KNOW the encryption algorithm AND you don't KNOW the key.

Just because a PIC was used for the remote, there's no reason that KEELOQ was used. Think of it this was. Guys buy cars....they rip out the OEM radio, put in some aftermarket unit.....

Is it possible to 'reverse engineer' the remote to get the encryption. Yes.


how to reverse engineer ?

What path should be followed in light of this information?
temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 7:21 am     Reply with quote

1st step, press same key 65,000+ times and record the data streams.

2nd step, cut code to look for 2 identical data streams.

I'd program a PIC to 'press a key', once every 1 second, capture the data,add CRLF, then send to a PC . Have the PC run a terminal program to capture and save the data. Then cut a program to search the data file for 2 identical 'data stream'. To mimick the 'keypress', you could use a relay across the pushbutton contacts. To search for two identical data, you load 1st entry as the 'sample', then go through the remaining 65,000(end of file) to see if they are the same. If not, load #2 as the 'sample', then test from #3 to end of file. NO ? then load #3, test #4 to end of file.

If it really has a 'rolling key', it will 'repeat' BUT first you need to acquire all the data !
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 8:47 am     Reply with quote

temtronic wrote:

If it really has a 'rolling key', it will 'repeat' BUT first you need to acquire all the data !


Once we understand that this is a rolling key, how should we proceed?
temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 9:40 am     Reply with quote

well one problem. in that spreadsheet the 'output data' you say is 64 bits actually has 16 hex characters for most of the 'key presses', so that'd be 256 bits of data......
another problem is the 'data' isn't always 16 characters......even for the same 'keypress'.
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 10:31 am     Reply with quote

temtronic wrote:
well one problem. in that spreadsheet the 'output data' you say is 64 bits actually has 16 hex characters for most of the 'key presses', so that'd be 256 bits of data......
another problem is the 'data' isn't always 16 characters......even for the same 'keypress'.


Is this related to the counter starting from 1 to 528 ? I'm confused about how I should go about decrypting the password.
temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 12:45 pm     Reply with quote

1st you've got to get 'good' data ! I assume EVERY transmission is the same number of characters. For sure EVERY time you press '3', you NEED to get the SAME number of characters !!!
Until that happens you cannot decode/decrypt/ make sense of the data .
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 1:18 pm     Reply with quote

temtronic wrote:
1st you've got to get 'good' data ! I assume EVERY transmission is the same number of characters. For sure EVERY time you press '3', you NEED to get the SAME number of characters !!!
Until that happens you cannot decode/decrypt/ make sense of the data .


I will share the RF output as well.
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 3:37 pm     Reply with quote

I share raw data with the logic analyzer and Manchester decodes
Excel bottom 3 data remote control identification data

I added an Excel file download link.

https://dosya.co/x3uc7u9jveoa/data_2.xlsx.html


temtronic



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

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 3:52 pm     Reply with quote

1st, link comes in as 'malware'.......
2nd, grabbed the screenshot and zoomed it up

3rd, don't know why the pink background is there

looks like totally random bytes, no 'pattern' so can't 'decode'....
bulut_01



Joined: 24 Feb 2024
Posts: 261

View user's profile Send private message

PostPosted: Sat Jul 12, 2025 4:15 pm     Reply with quote

temtronic wrote:
1st, link comes in as 'malware'.......
2nd, grabbed the screenshot and zoomed it up

3rd, don't know why the pink background is there

looks like totally random bytes, no 'pattern' so can't 'decode'....


I will upload the file to a new site. The red ones are duplicate data in the same column. You can remove it if you want.

https://www.dosyaupload.com/1RO1/data_2.ods

I am sharing the raw data from the unencrypted remote control:

UP BUTON
0000000002010B000000000071E7F021020100204B

STOP BUTON
0000000002010B000000000071E7F021020100105B

DOWN BUTON
0000000002010B000000000071E7F021020100402B
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 5 of 6

 
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