From 2b15fd93a6f02c1dec99bd0bc81963deeea2a248 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Tue, 6 Feb 2024 10:04:04 -0800 Subject: [PATCH] Default to 128bit keys --- Meshtastic/Views/Settings/Channels.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meshtastic/Views/Settings/Channels.swift b/Meshtastic/Views/Settings/Channels.swift index b8ad588c..491dcdf8 100644 --- a/Meshtastic/Views/Settings/Channels.swift +++ b/Meshtastic/Views/Settings/Channels.swift @@ -29,7 +29,7 @@ struct Channels: View { @State private var isPresentingSaveConfirm: Bool = false @State private var channelIndex: Int32 = 0 @State private var channelName = "" - @State private var channelKeySize = 32 + @State private var channelKeySize = 16 @State private var channelKey = "AQ==" @State private var channelRole = 0 @State private var uplink = false @@ -89,7 +89,7 @@ struct Channels: View { if node?.myInfo?.channels?.array.count ?? 0 < 8 && node != nil { Button { - let key = generateChannelKey(size: 32) + let key = generateChannelKey(size: 16) channelName = "" channelIndex = Int32(node!.myInfo!.channels!.array.count) channelRole = 2