make sure that the crypt library is loaded
introduce some encryption exceptions and catch additional error cases