generateSalt static method

Future<Uint8List> generateSalt()

Creates a random salt.

Implementation

static Future<Uint8List> generateSalt() async {
  var keyData = await SecretKeyData.random(length: 40).extract();
  var ret = Uint8List.fromList(keyData.bytes);

  return ret;
}