generateDesKey static method
Used to generate a specific length of AES key with the given length
.
If it is a 128-bit key, enter 128 and the returned key will be encoded by Hex.
value
and key
shoudn't be null.
Implementation
static Future<String> generateDesKey(int length) async {
try {
final String result =
await _channel.invokeMethod('generateDesKey', {"length": length});
return result;
} on PlatformException catch (e) {
throw "Failed to get string encoded: '${e.message}'.";
}
}