Skip to content

Instantly share code, notes, and snippets.

Avatar
💸

anidean

💸
View GitHub Profile
@anidean
anidean / Crypto_gpgme.cpp
Created Jun 10, 2020
C++ Wrapper functions for gpgme - barebones, works but doesn't use async functionality. Slower than sequoia version by a lot.
View Crypto_gpgme.cpp
// this file handles the gpg and cryptography functions
#include "Api.hpp"
#include "Crypto.hpp"
#include "run-support.h"
int import_json_key(std::string imported_key){ // this requires an armored key with \n
////DEBUG_LOG(__func__, "import key attempt 1:\n%s", key);
//rap::Document document;
//document
@anidean
anidean / Crypto.cpp
Last active Jun 10, 2020
C++ Wrapper functions for Sequoia PGP
View Crypto.cpp
// this file handles the gpg and cryptography functions
// Crypto.hpp
//////////////////////////////
#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/rotating_file_sink.h"
#define SPDLOG_STR_H(x) #x
#define SPDLOG_STR_HELPER(x) SPDLOG_STR_H(x)