sa2

package module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 1 Imported by: 0

README

VAG SA2 Seed Key algorithm in Go

SA2 Seed/Key authentication is a mechanism for authorizing test / tool clients with Volkswagen Auto Group control units, usually used to unlock a Programming session to re-flash the control units.

Based on the work of https://github.com/bri3d/sa2_seed_key

How to use

sa := sa2.New([]byte{0x68, 0x02, 0x81, 0x49, 0x93, 0xa5, 0x5a, 0x55, 0xaa, 0x4a, 0x05, 0x87, 0x81, 0x05, 0x95, 0x26, 0x68, 0x05, 0x82, 0x49, 0x84, 0x5a, 0xa5, 0xaa, 0x55, 0x87, 0x03, 0xf7, 0x80, 0x6a, 0x4c})
result := sa.Execute(0x1a1b1c1d)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SA2

type SA2 struct {
	// contains filtered or unexported fields
}

SA2 represents the VAG SA2 seed/key opcode algorithm

func New

func New(opcode []byte) *SA2

New creates a new SA2 opcode executor

func (*SA2) Execute

func (sa *SA2) Execute(seed int) int

Execute executes the opcode on the give seed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL