FlutterAesGcm.with128bits constructor
FlutterAesGcm.with128bits({
- CryptographyChannelPolicy? channelPolicy,
- Random? random,
Constructs Flutter-optimized AesGcm
which will use 128-bit keys.
The channelPolicy
can be used to choose which requests are sent to the
plugin implementation (using a Flutter MethodChannel) and which ones are
handled in the same isolate.
The default FlutterCipher.defaultChannelPolicy forces small encrypt /
decrypt calls to be handled in the same isolate.
When operating system APIs are not available fallback is used. The default fallback implementation is BackgroundAesGcm.
If you want deterministic key generation for testing, you can pass a Random instance that returns the same sequence of bytes every time.
Implementation
FlutterAesGcm.with128bits({
CryptographyChannelPolicy? channelPolicy,
Random? random,
}) : this(
secretKeyLength: 16,
channelPolicy: channelPolicy,
random: random,
);