Add simple encryption code

* Also add "transceive", with to-be socket interfacing code.