adding crypto iface and impl #504
adding ability to encrypt client session #504