richClubb / python-uds

A uds library for python
MIT License
95 stars 54 forks source link

calculateKeyFromSeed formula incorrect #64

Open MasterCodeIT opened 3 years ago

MasterCodeIT commented 3 years ago

Have your projected add to python can.

Attempting to us this on my e43:

Seedkey Request shows: CD, 66, 33, 19

When I run the code you have, it gives the following:

Security Key: [205, 102, 51, 25] Calculated Key: [102, 32, 31, 102, 132, 169, 136, 123, 22, 254, 133, 252, 133, 113, 122, 5]

However this is incorrect, the correct Calculated Key was 43,0A,37,D2

What would we need to change in the formula?

MasterCodeIT commented 3 years ago

Updated post 1

MasterCodeIT commented 3 years ago

anything on this?