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