String? symmetricKeyToJson(List<int>? key) { if (key == null) return null; return base64RawUrl.encode(key); }