Skip to content

Instantly share code, notes, and snippets.

@sriharshav
sriharshav / rsa.hpp
Created March 17, 2022 23:55 — forked from lillypad/rsa.hpp
OpenSSL RSA Encryption / Decryption C++ Wrapper
// c includes
#include <stdio.h>
#include <string.h>
// cpp includes
#include <algorithm>
#include <iostream>
#include <sstream>
// lib includes
@sriharshav
sriharshav / libtar-list.c
Last active November 19, 2021 07:54 — forked from cat-in-136/libtar-list.c
Study for reading/writing a tar file using libtar
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <libtar.h>
int main(int argc, char *argv[]) {
TAR *tar = NULL;
int ret = 0;
int exitcode = 0;