A few tweaks with the encryption and memory classes.
Socket class is much more elegant now and is derived from the general Stream class.