Encryption choices

Adds an extra char at the end of the buffer which tells the stub which
encryption method was used.