Moved encoding to caller.

The source-generator was doing the encoding, which disallowed it from being used with encrypted data.

- Added a second example that encrypts all of the way before decrypting all of the way.