newRandom static method

Future<KeyStore> newRandom()

Implementation

static Future<KeyStore> newRandom() async {
  var entropy = await cryptography.SecretKeyData.random(length: 32).extract();
  return KeyStore.fromEntropy(HEX.encode(entropy.bytes));
}