Skip to content

Instantly share code, notes, and snippets.

View anidean's full-sized avatar
💸

anidean

💸
View GitHub Profile
@anidean
anidean / Crypto.cpp
Last active June 10, 2020 22:18
C++ Wrapper functions for Sequoia PGP
// 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)
@anidean
anidean / Crypto_gpgme.cpp
Created June 10, 2020 22:20
C++ Wrapper functions for gpgme - barebones, works but doesn't use async functionality. Slower than sequoia version by a lot.
// 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