Pages: [1]
Author Topic: SA2 Seed/Key in Python  (Read 11375 times)
d3irb
Full Member
***

Karma: +131/-1
Offline Offline

Posts: 185


« on: November 06, 2020, 09:21:17 AM »

Hi,

Nothing new here discovery wise, as we know SA2 dates back to 2003.

However, I have implemented SA2 in Python:

https://github.com/bri3d/sa2_seed_key

A quick refresher on SA2: it is the universal seed/key authentication mechanism for flashing pretty much all VAG control units since the early 2000s. ODIS reads an SA2 "script" from either 0x000001bc in an oldschool SGO file or the SECURITY-METHOD=SA2 section of an ODX file. The programming tool then applies the bytecode script against the Seed provided to generate the Key to unlock a Programming session.

While this has been known since the beginning of time pretty much, I still see people trying to reverse the "algorithm" tools are using for various control units. In almost all cases this is completely unnecessary with any SGO/ODX for the same part and this little bytecode runtime. I hope this helps some folks out, cheers!
Logged
navatar_
Newbie
*

Karma: +1/-1
Offline Offline

Posts: 18


« Reply #1 on: November 08, 2020, 03:03:46 PM »

Incredible work d3irb. Thank you.
Logged
ASTROLIDER
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 13


« Reply #2 on: May 02, 2023, 10:05:25 AM »

I am going to take SA2 to pascal and I will show you the App. to later use it in dash g7 brazil version.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.05 seconds with 17 queries. (Pretty URLs adds 0.001s, 0q)