AesGcmCryptoPlatform class abstract
The abstract platform interface for AES-GCM encryption and decryption.
Platform-specific implementations must extend this class and implement the defined methods. The default implementation is provided by MethodChannelAesGcmCrypto.
- Inheritance
-
- Object
- PlatformInterface
- AesGcmCryptoPlatform
- Implementers
Constructors
- AesGcmCryptoPlatform.new()
- Constructs an AesGcmCryptoPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decryptAesGcm(
String masterKey, String cipherText) → Future< String> -
Decrypts the given
cipherText
using AES-GCM with the providedmasterKey
. -
encryptAesGcm(
String masterKey, String plainText) → Future< String> -
Encrypts the given
plainText
using AES-GCM with the providedmasterKey
. -
getPlatformVersion(
) → Future< String> - Returns the platform version as a string.
-
init(
) → Future< void> - Initializes the AES-GCM crypto plugin.
-
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
Static Properties
- instance ↔ AesGcmCryptoPlatform
-
The default instance of AesGcmCryptoPlatform to use.
getter/setter pair