Encryptor class
Handles all of the encryption tasks in the codebase.
Constructors
:
Properties
[hashCode] [→ int] : The hash code for this object. ::: features no setterinherited :::
[runtimeType] [→ Type] : A representation of the runtime type of the object. ::: features no setterinherited :::
Methods
[assymetricDecryptString][([[String] data, ][[RSAPrivateKey] privateKey]) [→ String] ] : Encrypts the given string data with user's Private Key.
[assymetricEncryptString][([[String] data, ][[RSAPublicKey] recipientPublicKey]) [→ String] ] : Encrypts the given string data with Recipient's Public Key.
[generateRSAKeyPair][ [→ AsymmetricKeyPair[<[PublicKey], [PrivateKey]>]] ] : Generates RSA Key Pairs (Public/Private).
[loadKeyPair][([[HiveInterface] hive]) [→ Future[<[AsymmetricKeyPair[<[PublicKey], [PrivateKey]>]]>]] ] : Loads secret keys from the Hive db.
[noSuchMethod][([[Invocation] invocation]) → dynamic ] : Invoked when a nonexistent method or property is accessed. ::: features inherited :::
[receiveMessage][([[Map[<[String], dynamic>]] message, ][[HiveInterface] hive]) [→ Future<[void>]] ] : Helper function to decrypt the message.
[saveKeyPair][([[AsymmetricKeyPair[<[PublicKey], [PrivateKey]>]] keyPair, ][[HiveInterface] hive]) [→ Future<[void>]] ] : Saves the generated key pair to local storage.
[toString][ [→ String] ] : A string representation of this object. ::: features inherited :::
Operators
[operator ==][([[Object] other]) [→ bool] ] : The equality operator. ::: features inherited :::
Static Properties
[shouldEncrypt] [↔ bool] : A global switch to flag the encryption. ::: features getter/setter pair :::
Static Methods
[encryptString][([[String] data]) [→ String] ] : Encrypts a given string with SHA256 Encryption.