I try to silent exceptions which could be raised by decrypt in case of a malformed input, for exemple, an empty string (from an empty file). I guess there is a better way to do it... :$ (shame)