randomSecret method
Generates a cryptographically secure random secret in base32 string format.
Implementation
static String randomSecret() {
var rand = Random.secure();
var bytes = List();
for (int i = 0; i < 10; i++) {
bytes.add(rand.nextInt(256));
}
return base32.encode(bytes);
}