Encrypt the given string in a way which anybody having access to this method algorithm can
easily decrypt. This is useful only to avoid clear string storage in a file for example, but
shouldn't be considered as a real mean of security. This only works with simple characters
(char < 256).
Parameters: str - the string to encrypt the encrypted version of the string
Returns the error message associated with the given exception. Th error message returned will
try to be as precise as possible, handling cases where e.getMessage() is not meaningful, like
NullPointerException for instance.
Parameters: e - the exception to get the error message from the error message of the given exception