Skip to content

Instantly share code, notes, and snippets.

View AJPoulter-Soton's full-sized avatar
🤕
Writing up my thesis…

AJ Poulter AJPoulter-Soton

🤕
Writing up my thesis…
  • University of Southampton
View GitHub Profile
@AJPoulter-Soton
AJPoulter-Soton / fletcher32.py
Created May 17, 2019 15:10
Python implementation of 32-bit Fletcher Checksum (Fletcher-32)
# A simple implementation of a 32-bit Fletcher checksum...
def fletcher32(data, length):
w_len = length
c0 = 0
c1 = 0
x = 0
while w_len >= 360:
for i in range (360):
@AJPoulter-Soton
AJPoulter-Soton / device.py
Created February 22, 2019 15:30
Simple Python IoT Device – using the Secure SRUP Protocol
import RPi.GPIO as GPIO
import time
import pySRUP
import os
import sys
import shutil
FILENAME = "device.py"
DELAY = 0.75
LED_STATE = False
@AJPoulter-Soton
AJPoulter-Soton / bishop.c
Last active September 5, 2018 12:13 — forked from nirenjan/bishop.c
Simulate a drunken bishop walk to produce OpenSSL random art.
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#define XLIM 17
#define YLIM 9
#define ARSZ (XLIM * YLIM)