Skip to content

Instantly share code, notes, and snippets.

@foogod
foogod / pronenc.py
Created September 7, 2019 01:27
Example pronounceable encryption/decryption
#!/usr/bin/env python3
#
# This file is an example of one possible way to encrypt data such that the encrypted output is in a form that is easily
# "readable" (or at least pronouncible) by humans. It takes its input (which this program assumes to be text, but
# making it work with binary data would not be difficult), and first compresses it with zlib, then encrypts it using AES
# encryption with the provided passphrase, then takes the result of the encryption and encodes it into words made of
# human-readable syllables. The result is something that looks like the following:
#
# $ ./pronenc.py -e dontusethispassword
# [input]
@foogod
foogod / spi_regs.h
Created August 17, 2015 21:20
Proposal for ESP8266 register header
#ifndef _SPI_REGS_H
#define _SPI_REGS_H
// Register definitions for the SPI peripherals on the ESP8266.
//
// There are twp SPI devices built into the ESP8266:
// SPI(0) is at 0x60000200
// SPI(1) is at 0x60000100
// (note that the device number order is reversed in memory)
//