LightCryptRaw class

This class is for encrypting and decrypting using various stream ciphers.

This version of LightCrypt is raw, meaning that it expects keys and IVs to be Uint8List, and returns Uint8List. For more high-level solutions, LightCrypt is recommended.

Constructors

LightCryptRaw({required StreamAlgo algorithm, required Uint8List key})
Construct encryption machine using key and algorithm.

Properties

algorithm StreamAlgo
Get name of this LightCrypt's algorithm.
no setter
hashCode int
The hash code for this object.
no setterinherited
key Uint8List
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decrypt({required Uint8List enc, required Uint8List iv}) Uint8List
Decrypt (with iv) and return original Uint8List.
encrypt({required Uint8List inp, required Uint8List iv}) Uint8List
Encrypt (with iv) and return encrypted Uint8Lists.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited