2

Using C#, I want to locate the local root folder where MEGAsync syncronizes into.

There are several similar questions for other clould providers:

Still for MEGAsync I found no solution.

My question:

Is there any chance to find the MEGAsync folder without additional libraries?

Update 1:

There is a configuration file located at

C:\Users\MyUser\AppData\Local\Mega Limited\MEGAsync\MEGAsync.cfg

All the content seems to be encrypted. So I doubt that there is any solution at all.

Community
  • 1
  • 1
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291

1 Answers1

1

I had the same question and I figured out that the MEGAsync.cfg file that you mention in your question is actually not encrypted, each entry is just encoded as base64. The format of each line is:

<key>=<base64_encoded_value>

You can decode each entry in the config file using C#'s "Base64" decoder, although I have only tested it with python.

  • 1
    This is no longer the case, I fear. Looks like the settings are currently encrypted and *then* encoded as base64. – Menion Leah Feb 11 '22 at 07:31