Cleanup to encryption handler, perform hash->text conversion correctly.
Cleaned up logging, made some errors quieter, handle session disposal properly(?).