CryptoModule class
CryptoModule is responsible for encryption and decryption of PubNub messages.
Constructors
-
CryptoModule({required ICryptor defaultCryptor, List<
ICryptor> ? cryptors, CryptoConfiguration defaultConfiguration = const CryptoConfiguration()}) - CryptoModule.aesCbcCryptoModule(CipherKey cipherKey, {dynamic defaultCryptoConfiguration = const CryptoConfiguration()})
-
factory
- CryptoModule.legacyCryptoModule(CipherKey cipherKey, {dynamic defaultCryptoConfiguration = const CryptoConfiguration()})
-
factory
Properties
-
cryptors
↔ List<
ICryptor> ? -
getter/setter pair
- defaultConfiguration ↔ CryptoConfiguration
-
getter/setter pair
- defaultCryptor → ICryptor
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- legacyCryptoModule ↔ LegacyCryptoModule
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decrypt(
List< int> data) → List<int> -
decryptFileData(
CipherKey key, List< int> input) → List<int> -
decryptWithKey(
CipherKey key, List< int> input) → List<int> -
encrypt(
List< int> data) → List<int> -
encryptFileData(
CipherKey key, List< int> input) → List<int> -
encryptWithKey(
CipherKey key, List< int> input) → List<int> -
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