Skip to content

Instantly share code, notes, and snippets.

View SeeTheC's full-sized avatar

Khursheed Ali SeeTheC

View GitHub Profile
@SeeTheC
SeeTheC / rsa.hpp
Created September 12, 2023 05:02 — forked from lillypad/rsa.hpp
OpenSSL RSA Encryption / Decryption C++ Wrapper
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/err.h>
#define CRYPTO_RSA_KEY_LEN_4096 4096
#define CRYPTO_RSA_KEY_LEN_2048 2048
#define CRYPTO_RSA_KEY_LEN_1024 1024
@SeeTheC
SeeTheC / main.cpp
Created September 11, 2023 17:55 — forked from grejdi/main.cpp
Using openssl to encrypt and decrypt a message with public/private key.
using namespace std;
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <iostream>
#include <string>
int main()
{