Keeloq Encoder example code


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default Re: Keeloq Encoder example code

    Thanks Richard for the effort on this.

    I'll try to do the same on the encryption part which is what I am interested in.

    About PBPL, sure I will try to do this in PBP since the code is inteded to run on a low end PIC.

    Thanks again,
    Ioannis
    Last edited by Ioannis; - 11th November 2015 at 09:40.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Keeloq Encoder example code

    I feel there is something missing here , the code is meant to be rolling encryption . so something needs to be saved for the next call doesn't it ?

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,172


    Did you find this post helpful? Yes | No

    Default Re: Keeloq Encoder example code

    The general idea from the limited data I could find is this.

    You have your secret keys (8 bytes) that both the encrypter and decrypter know.

    Then you have also 4 bytes of data (32 bits) that will be encoded byt the encoder (either hardware or software).

    The result will be placed (after the crazy 512 shifts and rotatons) at the same registers of the 4 data bytes. They call it CSR3:CSR0 registers in the data sheet and ANs.

    Regarding the decryption I am very close, almost working. But the Encoder is a bit harder to accomplish, mainly because resources are limited on a 12Fxxx chips.

    Thanks,
    Ioannis

Similar Threads

  1. Absolute encoder with Petherick code
    By stojakovicv in forum mel PIC BASIC
    Replies: 3
    Last Post: - 1st April 2016, 17:36
  2. Rentron Encoder
    By lerameur in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 27th June 2013, 08:28
  3. Convert Rotary Encoder Code from 16F628A to 16F1825
    By RossWaddell in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 7th June 2012, 05:34
  4. rf encoder/decoder
    By a_critchlow in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd February 2006, 12:58
  5. KeeLoq
    By wvdv in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st December 2004, 00:46

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts