Tag Archives: c
How to overcome ERROR_INTERNET_INVALID_CA error in C

ERROR_INTERNET_INVALID_CA (12045) – The function is unfamiliar with the Certificate Authority that generated the server’s certificate. //… DWORD invalidcaFlags, invalidcaFlagsLen…

How to compress a buffer with zlib in C

To build the following code, you first have to link zlib library, zlibstat.lib file, with your project and define ZLIB_WINAPI…

OpenSSL RC4 encryption in C

To compile the following code you have to link OpenSSL libeay32.lib with your project. To build OpenSSL for Windows please…

Calculate sha256 with OpenSSL and C

To compile the following code you have to link OpenSSL libeay32.lib with your project. To build OpenSSL for Windows please…

OpenSSL AES 256 CBC encryption in C

To compile the following code you have to link OpenSSL libeay32.lib with your project. To build OpenSSL for Windows please…

Simple XOR encryption in C

Dont’ use XOR encryption only when you encrypt data. It’s weak. Combine it with other methods/algorithms. You can for ex….

Reverse a Unicode String in C

Please don’t reverse a string to obsfucate/encrypt it. Combine various methods/algorithms. Reverse it, xor it, encode it using for ex….

Base64 with OpenSSL in C

Assuming that you have already built OpenSSL for Windows. Check this guide for details. Link your project with this library…

How to get the UTC offset in C

#include <stdio.h> #include <stdlib.h> #include <time.h>   int GetUTC(){ time_t now = time(NULL); struct tm *lcl = localtime(&now); time_t local…

Get installed firewall in C

You will need to include the libraries ole32.lib, oleaut32.lib and wbemuuid.lib into your project. The following code can be compiled…

Previous Page · Next Page