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…

OpenSSL AES 256 CBC encryption in PHP

define(’AES_METHOD’, ‘AES-256-CBC’);   class AES256 { public function Encrypt($password, $plainText) { if(empty($password) || empty($plainText)) { return FALSE; }   //generate…

Update multiple Git repositories at once

You can also run the following commands in Windows using Cygwin. To update(pull) all repositories: ls -d */ | xargs…

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…

Build OpenSSL for Windows

> You need Visual Studio to build OpenSSL for Windows. > Download OpenSSL source code from here. > Download and…

Compute hash values for files in c#

MD5: using (MD5 md5 = MD5.Create()) { using (FileStream stream = File.OpenRead(filename)) { return BitConverter.ToString(md5.ComputeHash(stream)).Replace("-", "").ToLower(); } } SHA1: using…

Reversing with OBJDUMP

objdump – display plenty of information from object files. It is available in most Linux and Unix systems. It is…

Next Page