Make the symmetric-enc example an example

Making some minor tweaks to the doc example for symmetric encryption so
it is an actual, runable example.