Change the default pre shared key to break backward compatibility of default channel

This commit is contained in:
andrekir 2022-02-15 15:13:33 -03:00
parent 382bd40c17
commit 161af395a4

View file

@ -12,7 +12,7 @@ data class Channel(val settings: ChannelProtos.ChannelSettings) {
// These bytes must match the well known and not secret bytes used the default channel AES128 key device code
val channelDefaultKey = byteArrayOfInts(
0xd4, 0xf1, 0xbb, 0x3a, 0x20, 0x29, 0x07, 0x59,
0xf0, 0xbc, 0xff, 0xab, 0xcf, 0x4e, 0x69, 0xbf
0xf0, 0xbc, 0xff, 0xab, 0xcf, 0x4e, 0x69, 0x01
)
private val cleartextPSK = ByteString.EMPTY