This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <resolv.h> | |
#include <netdb.h> | |
#include <openssl/ssl.h> | |
#include <openssl/err.h> | |
//Not sure what headers are needed or not | |
//This code (theoretically) writes "Hello World, 123" to a socket over a secure TLS connection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make coding more python3-ish | |
from __future__ import (absolute_import, division, print_function) | |
from abc import ABCMeta | |
from array import array | |
from base64 import b64encode, b64decode | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
from Crypto.Hash import SHA256 |