Skip to content

Instantly share code, notes, and snippets.

@MURPHYENGINEERING
MURPHYENGINEERING / rsa.hpp
Created March 16, 2022 10:39 — 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