Key.fromSecureRandom constructor

Key.fromSecureRandom(
  1. int length
)

Creates an Encryption Key object from a length. The key is filled with length bytes generated by a Random.secure() generator

Implementation

Key.fromSecureRandom(int length) : super(SecureRandom(length).bytes);