From 036f139970d97fc8469e31398be96840875c1fc5 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Fri, 22 Nov 2024 00:32:23 +1300 Subject: [PATCH] show info when clicking channel psk badge --- src/components/channels/ChannelPskBadge.vue | 35 +++++++++++++++------ 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/src/components/channels/ChannelPskBadge.vue b/src/components/channels/ChannelPskBadge.vue index 3913acd..9e32c81 100644 --- a/src/components/channels/ChannelPskBadge.vue +++ b/src/components/channels/ChannelPskBadge.vue @@ -2,8 +2,8 @@
-
-
+
+
@@ -14,8 +14,8 @@
-
-
+
+
@@ -26,8 +26,8 @@
-
-
+
+
@@ -38,8 +38,8 @@
-
-
+
+
@@ -50,8 +50,8 @@
-
-
+
+
@@ -75,6 +75,21 @@ export default { }, methods: { isDefaultPsk: (psk) => SecurityUtils.isDefaultPsk(psk), + onNoKeyClick() { + alert("Messages sent to this channel are not encrypted and can be read by anyone."); + }, + onDefaultKeyClick() { + alert("Messages sent to this channel are encrypted with the default key and can be read by anyone."); + }, + on8BitKeyClick() { + alert("Messages sent to this channel are encrypted with a custom 8-Bit key and could easily be brute forced and read by anyone."); + }, + on128BitKeyClick() { + alert("Messages sent to this channel are encrypted with a custom 128-Bit key and can only be decrypted and read by others that know this key."); + }, + on256BitKeyClick() { + alert("Messages sent to this channel are encrypted with a custom 256-Bit key and can only be decrypted and read by others that know this key."); + }, }, }