changeEncryptionKey abstract method

  1. @override
Future<void> changeEncryptionKey(
  1. EncryptionKey? newKey
)
override

Encrypts or decrypts a Database, or changes its EncryptionKey.

This feature is only available in the Enterprise Edition.

If newKey is null, the database will be decrypted. Otherwise the database will be encrypted with that key; if it was already encrypted, it will be re-encrypted with the new key.

Implementation

@override
Future<void> changeEncryptionKey(EncryptionKey? newKey);