initiatePassword method

Future<void> initiatePassword(
  1. String password
)

Implementation

Future<void> initiatePassword(String password) async {
  var box = await Hive.openBox(_secretBoxName);
  final cipherText = box.get(_appLevelPasswordKey);
  if (cipherText == null) {
    return storeSecret(
      key: _appLevelPasswordKey,
      password: password,
      secret: Uint8List.fromList(
        utf8.encode(_appLevelKnownContent),
      ),
    );
  }
}