Encrypted.fromLength constructor

Encrypted.fromLength(
  1. int length
)

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

Implementation

Encrypted.fromLength(int length) : _bytes = SecureRandom(length).bytes;