The following code was taken from Neal Stephenson's novel, Cryptonomicon, and was originally designed by Bruce Schenier. Since I couldn't find reliable source code for it, I decided to transcribe it and make a few changes of my own, but found Ian Goldberg's verbose transcription in an old email archive. I've seen several reiterations of this same algorithm in various programming languages and I'd like to take a crack at implementing it in Go.
https://en.wikipedia.org/wiki/Cryptonomicon https://www.schneier.com/academic/solitaire/ https://mail.pm.org/pipermail/hudson-valley-pm/2000-September/000048.html https://news.ycombinator.com/item?id=4904260 https://www.cypherpunks.ca/~iang/