generate examples in pieces
Update encryption examples
more common code
add a shared key