Crypto class
GeneralLib
Constructors
- Crypto.new({required String key, String iv = "AAAAAAAAAAAAAAAAAAAAAA=="})
-
GeneralLib
const
- Crypto.defaultCrypto()
-
GeneralLib
const
Properties
Methods
-
decrypt(
{required String data, String? newKey, String? iv}) → String - GeneralLib
-
decryptBytes(
{required List< int> data, String? key, String? iv}) → List<int> - GeneralLib
-
decryptFromBase64(
{required String text, String? key, String? iv}) → String - GeneralLib
-
decryptsBytes(
{required List< int> data, required List<String> keys}) → List<int> - GeneralLib
-
encrypt(
{required String data, String? newKey, String? iv}) → String - GeneralLib
-
encryptBytes(
{required List< int> data, String? key, String? iv}) → Uint8List - GeneralLib
-
encryptListToBase64(
{required List data}) → String - GeneralLib
-
encryptMapToBase64(
{required Map data}) → String - GeneralLib
-
encryptsBytes(
{required List< int> data, required List<String> keys}) → Uint8List - GeneralLib
-
encryptToBase64(
{required String text, String? key, String? iv}) → String - GeneralLib
-
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
-
cryptoExchange<
DV> ({required DV defaultValue, required void changeValue(DV defaultValue), bool isThrowOnError = false}) → void - GeneralLib
-
cryptoExchanges<
JSCDATA extends JsonScheme> ({required JSCDATA jsonSceheme, required Set< String> keys, required void changeValue(String key, dynamic defaultValue), bool isThrowOnError = false}) → void - GeneralLib
-
empty(
) → Crypto - GeneralLib
-
generateKey(
{String scheme = "0123456789abcdefghijklmnopqrstuvwxyz"}) → String - GeneralLib