AsymmetricCryptoPrimitives class
Constructors
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
-
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
-
checkIfDeviceSecure(
) → Future< bool> - Checks if the screen lock has been set on the device. Returns true if it is set and false if not. An asynchronous function, has to be awaited.
-
cleanUp(
dynamic signer) → Future< void> - Deletes the keys established by signer with particular uuid
-
deleteData(
String key) → Future< bool> - Deletes data saved under provided key from shared preferences. Returns true if data is successfully deleted.
-
editData(
String key, String data) → Future< bool> - Edits data under provided key in shared preferences. Data is encrypted using AES. Returns true if data is successfully saved.
-
establishForEd25519(
) → Future< Ed25519Signer> - Initializes the Ed25519 signer object, which will allow the user to generate keys, rotate them and delete them.
-
establishForRSA(
) → Future< RSASigner> - Initializes the RSA signer object, which will allow the user to generate keys, rotate them and delete them.
-
getEd25519SignerFromUuid(
String uuid) → Future< Ed25519Signer> - Returns the Ed25519 signer object from given uuid
-
getRSASignerFromUuid(
String uuid) → Future< RSASigner> - Returns the RSA signer object from given uuid
-
readData(
String key) → Future - Reads data saved under provided key from shared preferences. Returns data if it is successfully read.
-
writeData(
String key, String data) → Future< bool> - Writes provided data under provided key in shared preferences. Data is encrypted using AES. Returns true if data is successfully saved.