My notes from cryptopals Cryptography puzzles, at http://cryptopals.com/
I need to install OpenSSL on Windows to use OpenSSL::Cipher.
Getting it to compile is hard. Following instructions from here
-
Download 1.0.2h openssl source
-
Install PERL from https://www.activestate.com/ActivePerl
-
Install NASM 2.13.01, and add it to PATH
-
Open "x64 Native Tools Command Prompt for VS 2017" (search for it in start menu)
-
Run the following commands
perl Configure VC-WIN64A --prefix=C:\openssl_x64 no-asm no-shared enable-tlsext enable-static-engine ms\do_win64a nmake -f ms\ntdll.mak nmake -f ms\ntdll.mak install
This will install openssl library in C:\openssl_x64
I copied both the include and lib folders from C:\openssl_x64
locally so that it would be easier to link and get include paths in the future.
Then I made the following changes:
- Add the following directory in "VC++ Directories -> Library Directories": (MSBuildProjectDirectory)\lib
- Add the following directory in "VC++ Directories -> Additional Include Directories": (MSBuildProjectDirectory)\lib
- Add the following to "Linker->Input": "ssleay32.lib;libeay32;"
Sources OpenSSL Wiki Stackoverflow example