LightCrypt constructor

LightCrypt({
  1. required StreamAlgo algo,
  2. required String key,
})

Construct encryption machine using key and algorithm.

Implementation

LightCrypt({required StreamAlgo algo, required String key})
    : _type = algo,
      _key = key,
      _stringType = stringifyStream(algo);