updateDataEncryptionKey method

Future<void> updateDataEncryptionKey()

A data key used to encrypt user data and are automatically generated by the system. To prevent from being cracked when using one key for a long time, you can call this method to update the data key.

Implementation

Future<void> updateDataEncryptionKey() async {
  try {
    return await _methodChannel.invokeMethod<void>(
      _MethodConstants.UPDATE_DATA_ENCRYPTION_KEY,
      <String, dynamic>{},
    );
  } catch (e) {
    throw AGConnectCloudDBException._from(e);
  }
}