Added signature to encrypted messages and CryptoUtils improvement.

Added signature to encrypted messages.
Changed visibilities of methods in CryptoUtils.
Added log messages for (currently) unhandled exceptions.