The Tiny Encryption Algorithm is a simple block cipher designed by David Wheeler and Roger Needham in 1994 at the Cambridge Computer Laboratory. You can read more about it here https://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm.
Fun issue I found while implementing this is that Ruby does not have a nice way of dealing with C datatypes, so I had to write my own uint32_t
type.