private void decrypt(InputStream in, OutputStream out) throws Exception {
        try {
            in = decryptFileStream(in, out);
        } catch (BadPaddingException ex) {
            Logger.addMessage("Exception in decrypt(): " + ex);
        } catch (IOException ex) {
            Logger.addMessage("Exception in decrypt(): " + ex);
            in = new FileInputStream(_cryptPath);
            int numRead;
            SecureRandom sr = new SecureRandom();
            while ((numRead = in.read(buf)) >= 0) {
                sr.nextBytes(buf);
                out.write(buf, 0, numRead);
            }
        } catch (Exception ex) {
            Logger.addMessage("Exception in decrypt(): " + ex);
        } finally {
            in.close();
            out.close();
        }
    }