From 8d957d4c4e2fccd00297150bcba8a16586f8f240 Mon Sep 17 00:00:00 2001
From: Antoine Pietri <antoine.pietri1@gmail.com>
Date: Tue, 20 Jul 2021 21:15:49 +0200
Subject: [PATCH] README: mention decryptapp as an alternative to open emxc://
 URLs

---
 README.md | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 4ba716b..4a6f4f6 100644
--- a/README.md
+++ b/README.md
@@ -134,10 +134,24 @@ We recommend you install this under your `PATH` as `matrix_upload` (without the
 
 ## Downloading encrypted files
 
-Encrypted files can be opened by passing the displayed `emxc://` URI to the
+Encrypted files are displayed as an `emxc://` URI which cannot be directly
+opened. They can be opened in two different ways:
+
+- **In the CLI** by running the
 [contrib/matrix_decrypt](https://github.com/poljar/weechat-matrix/blob/master/contrib/matrix_decrypt.py)
 helper script.
 
+- **In the browser** by using
+  [matrix-decryptapp](https://github.com/seirl/matrix-decryptapp). This is a
+  static website which cannot see your data, all the decryption happens
+  on the client side. You can either host it yourself or directly use the
+  instance hosted on `seirl.github.io`. This weechat trigger will convert all
+  your `emxc://` URLs into clickable https links:
+
+  ```
+  /trigger addreplace emxc_decrypt modifier weechat_print "" ";($|[^\w/#:\[])(emxc://([^ ]+));${re:1}https://seirl.github.io/matrix-decryptapp/#${re:2};"
+  ```
+
 # Configuration
 
 Configuration is completed primarily through the Weechat interface.  First start Weechat, and then issue the following commands: