looksLikeRecoveryKey static method

bool looksLikeRecoveryKey(
  1. String input
)

Whether input looks like an Olm/SSSS recovery key (not a passphrase).

Implementation

static bool looksLikeRecoveryKey(String input) {
  final cleaned = input.replaceAll(RegExp(r'\s+'), '');
  return cleaned.length == 48 && cleaned.startsWith('Es');
}