Accessing encrypted remotes from iOS



I’m currently using GSuite business for unlimited backups to Google Drive. I’m using DriveStream to do the actual transfer, and use a subfolder (g:\encrypted) as the input to a crypt remote.

How can I browse encrypted content on iOS? Since there isn’t an iOS app available, the only solution I can think of is using a VPS to host a rclone serving e.g, ftp / http / webdav. However, this isn’t as efficient as having an app that is able to directly talk to Google Drive and perform the decryption.

  1. Does anyone have any other suggestions as to how to do this?
  2. Are there any technical limitations on iOS that would make writing an app difficult?


That would certainly work.

rclone builds under IOS I know that. So someone could write a frontend for it which runs on IOS.


Hm, the first way I can think of that comes to mind would be to spawn rclone to do various things, e.g rclone ls, then parse its output.

I’m not familiar with how iOS works, so this assumes iOS lets you spawn another subprocess like you can in most other languages.

Does Rclone have a e.g, json based API which would be easier to use?


Yes it does - check out

It would be possible to build, eg a react native frontent for rclone using that. I’ve build a proof of concept react app that way.


Hm, so if an iOS app can run a rclone subprocess, then technically this is possible.

I’d like to try doing this, since I’ve been looking around for an idea to work on to learn iOS.


That would be interesting!

I do build an IOS binary on circleCI

I haven’t tried them though as I don’t have an IOS device, but I think they should work…


I understand why this likely hasn’t been attempted before; iOS doesn’t allow running other binaries from your application, so that precludes using the remote control API unfortunately.

The only way is to create glue code to call Rclone’s functions from iOS, and I don’t think rclone is designed as a package to be easily used by other programs.


Actually, I just realized that such an app wouldn’t require the full rclone remote control API; just enough to do the following:

  • Reads in a rclone configuration file from desktop
  • Browsing potentially encrypted remotes
  • Download files or folders
  • Streaming media

Nice to have:

  • upload files and folders
  • Move, rename, and delete files and folders


rclone is quite modular with a separation of concerns between the backends the operations and the cli interface. You could build a go program which used rclone’s operations quite easily.


Can you point me to which go packages I should look at to do the following?

  • Reads in a rclone configuration file
  • List dirs in a specified remote
  • Download the specified file/folder on a remote


The best thing to do is to start looking tracing the code from the command you are interested in.

So if you are interested in listing, then start here

There is an overview of which bits of code do what here


Thanks, that’s really helpful. I’ll get started by implementing a way of reading config files, and listing remotes in iOS.


I see the functions for listing a directory in a remote, but couldn’t figure out how it read from configuration files.

If I use the NewFsSrc function, does it automatically load configuration from the default path if not already loaded? I’d need to be able to control at least where the config is auto-read from.


Yes it will read the config from the default place. I htink you can set it by overriding config.ConfigPath. It might be easier to set environment variables RCLONE_CONFIG or pass the --config flag to start with.