Skip to content

Instantly share code, notes, and snippets.

View araij's full-sized avatar

Arai, Junya araij

View GitHub Profile
@araij
araij / CryptUnprotectData.cc
Last active July 16, 2016 01:07
(Personal note) Code to decrypt CryptProtectData'ed data
//
// Copyright (C) 2016 Arai, Junya
//
// This program reads CryptProtectData'ed hex string from stdin and decrypt it.
// To compile this with mingw32-g++ on Ubuntu 16.04, type
// x86_64-w64-mingw32-g++ --std=c++14 -o CryptUnprotectData.exe CryptUnprotectData.cc -lcrypt32 -mconsole -static
//
#include <algorithm>
#include <iostream>