Skip to content

Instantly share code, notes, and snippets.

@leecher1337
leecher1337 / lzss.c
Last active July 8, 2023 19:14
Uncompress Zyxel WAP3205 etc. LZSS compressed config files ( <Config_Information_File_8671> )
// Uncompress Zyxel WAP3205 etc. LZSS compressed config files
// These are in format <Config_Information_File_8671>
// Format description: https://qhimm-modding.fandom.com/wiki/FF7/LZS_format
// Author: leecher@dose.0wnz.at 05/2023
//
// gcc -o lzss lzss.c
//
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
@leecher1337
leecher1337 / PasswordDeriveBytes.c
Created November 8, 2021 01:16
C implementation of .NET PasswordDeriveBytes function
// C implementation of .NET PasswordDeriveBytes function for Win32
// Written by leecher@dose.0wnz.at
/*
PBKDF1_MS (P, S, c, dkLen)
Options: Hash underlying hash function
Input: P password, an octet string
S salt, an eight-octet string