Skip to content

A tool for generating activation keys for maps update using the Twofish algorithm and VIN number.

License

Notifications You must be signed in to change notification settings

HotFr1dge/psa-maps-activation-tool

Repository files navigation

PL 🇵🇱 · EN 🇬🇧

Activation Key Generator for PSA Group Vehicle Map Updates

This script is used to generate an activation key for a specific map update file (CCT.DAT.inf) and VIN number. Generated keys are compatible with most navigation systems in PSA group vehicles (Citroen, Peugeot, DS Automobile) including:

  • RT6 - CCT.DAT.inf file from the main directory \
  • SMEG - CCT.DAT.inf file from SMEG_UPG\DATA folder
  • SMEG+ - CCT.DAT.inf file from SMEG_PLUS_UPG\DATA folder
  • SMEG IV2 - CCT.DAT.inf file from SMEG_IV2_UPG\DATA folder

The activation key is calculated using the Twofish algorithm and is based on the contents of the CCT.DAT.inf file and the VIN number. The file is read and its content is used as input data to the Twofish algorithm, along with the VIN number and a constant initialization vector. The encrypted data obtained is then used to generate the activation key, which is returned as a string.

Live Demo

The script can be tested here.

generate function

import generator from './generator.js';

generator(filePath: string, vinNumber: string) => Promise<string>
  • filePath - path to the file (CCT.DAT.inf).
  • vinNumber - VIN number to generate the key for.

Returns: a Promise object containing the generated activation key as a string. If the VIN number is too short or an error occurs while reading the file, an error is returned.

There is a sample CCT.DAT.inf file in the repository.

Requirements

  • node.js v12 or higher
  • npm v6 or higher

Installation

To install dependencies, run the command: npm install

Usage

To generate an activation key:

  1. Edit the contents of the index.js file according to example below:
Keygen('/path/to/CCT.DAT.inf', 'EXAMPLE_VIN_NUMBER');
  1. Run the scripts with the command: node index.js
  2. The generated activation key will be displayed in the console.

Screenshoot

This is an implementation of original Java key generator in JavaScript. Original Java generator: generator_java-RT6.rar

This software is provided "as is" and the author of this software cannot be held responsible for any illegal use of the software. It is the responsibility of the user to use the software in accordance with the laws of their jurisdiction. The user is solely responsible for any consequences that may arise from the use of this software. By using this software, the user agrees to these terms.