code: public static byte[] decryptFile(String path, String key) {
          try {
              byte[] buf = readFile(path);
              return decrypt(buf, key);
          } catch (final Exception e) {
              logger.warn("Could not decrypt file {}", path, e);
              return null;
          }
      }
docs: Decrypts a file encrypted by {@link #encryptToFile(String, byte[], String)} method.
  
  @param path The file path to decrypt.
  @param key  The key.
  @return A decrypted byte[].