Skip to content

Instantly share code, notes, and snippets.

@NathaanTFM
NathaanTFM / pic2jpeg2vdt.py
Last active January 20, 2025 20:01
pic2jpeg2vdt.py - encodage JPEG pour Minitel
#!/usr/bin/env python3
"""
Script Python permettant l'encodage d'images vers JPEG pour Minitel Photo
Vous pouvez l'utiliser en tant que bibliothèque, ou l'exécuter via
un terminal (ou autre, peu importe).
Pour plus d'infos :
$ python3 pic2jpeg2vdt.py -h
@NathaanTFM
NathaanTFM / ppm2png.c
Last active September 21, 2023 10:46
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "lodepng.h"
#define IS_BLANK(ch) ((ch) == '\n' || (ch) == '\t' || (ch) == '\r' || (ch) == ' ' || (ch) == 0x7F)
static void ppmSkipLine(char **cur) {
for (;;) {
char ch = **cur;
"""
Decrypt HARMAN AIR SDK encrypted swfs
"""
from struct import pack, unpack
from Crypto.Cipher import AES
import sys
globalKey = b"Adobe AIR SDK (c) 2021 HARMAN Internation Industries Incorporated"
/*
Implementation of NDS Key2 Encryption
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
static uint8_t x[5];
static uint8_t y[5];
/*
Implementation of NDS Key1 Encryption
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#ifdef __AVR__