Skip to content

Instantly share code, notes, and snippets.

View SeeTheC's full-sized avatar

Khursheed Ali SeeTheC

View GitHub Profile
@SeeTheC
SeeTheC / biosuuid.cpp
Created January 7, 2025 05:51 — forked from neacsum/biosuuid.cpp
How to Get the BIOS UUID
#include <windows.h>
#include <sysinfoapi.h>
#include "biosuuid.h"
/*!
SMBIOS Structure header as described at
https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_3.3.0.pdf
(para 6.1.2)
@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()
{