AesGcmCryptoWeb class

A web implementation of the AesGcmCryptoPlatform for the AesGcmCrypto plugin.

This implementation uses browser APIs and JavaScript interop to handle AES-GCM encryption and decryption functionality on the web.

Inheritance

Constructors

AesGcmCryptoWeb.new()
Constructs an instance of AesGcmCryptoWeb.

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 provided cipherText using AES-GCM with the given masterKey.
override
encryptAesGcm(String masterKey, String plainText) Future<String>
Encrypts the provided plainText using AES-GCM with the given masterKey.
override
getPlatformVersion() Future<String>
Returns the browser's user agent string as the platform version.
override
init() Future<void>
Initializes the AES-GCM plugin for the web platform.
override
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 Methods

registerWith(Registrar registrar) → void
Registers this web implementation as the default instance of AesGcmCryptoPlatform.