[ View menu ]

Archive for 'source code'

All your Sudoku puzzles are belong to us

Today I’ve found Sudokuza while revising my archives. This is a program that solves Sudoku puzzles. I sketched it more than a year ago for fun to avoid Sudoku mania. :) My main goal was to create a program which would solve a puzzle the similar way as a human would do, without hardcore math. […]

Undocumented Windows cryptography

The last time we described semi- and undocumented functions in Windows, these were compression functions. Today’s subject is cryptographic functions. There are such functions in Windows core that allows you to use few cryptographic primitives easier, without whole CAPI overhead and hassle. Here is an example of how to generate secure random numbers and calculate […]

How to write your own WinZip

Have you ever want to make your very own data compression utility to beat WinZip, but always failed at all that math? Well, there is your chance. There are three Win32 functions will do the trick:

RtlCompressBuffer
RtlDecompressBuffer
RtlGetCompressionWorkSpaceSize

And without further ado here is the C code example of how to use these functions:

#include <windows.h>
#include <stdlib.h>
#include <stdio.h>

/*
#define COMPRESSION_FORMAT_LZNT1 […]

Zipofig. A story of ZIP archive recovery

Download Zipofig (.exe, 15k)
Recently I had a 2.7GB ZIP archive with 2857 files stored with “no compression” method. Each ZIP meant to be unzipped sooner or later and this one was not an exception. To my surprise, I failed when I tried to unzip it. Attempts with different versions of such different programs as WinZip, […]