sentc_light 0.10.0 copy "sentc_light: ^0.10.0" to clipboard
sentc_light: ^0.10.0 copied to clipboard

Sentc sdk light with user and group management.

Sentc light #

from sentclose.

Sentc is an easy to use end-to-end encryption sdk. It can be used for any kind of data.

Example #

demo() async {
  //init the client
  await Sentc.init(appToken: "5zMb6zs3dEM62n+FxjBilFPp+j9e7YUFA+7pi6Hi");

  //register a user
  await Sentc.register("userIdentifier", "password");

  //log in a user
  final user = await Sentc.login("userIdentifier", "password");

  //create a group
  final groupId = await user.createGroup();

  //load a group. returned a group obj for every user.
  final group = await user.getGroup(groupId);

  //invite another user to the group. Not here in the example because we only got one user so far
  // await group.inviteAuto("other user id");

  //delete a group
  await group.deleteGroup();

  //delete a user
  await user.deleteUser("password");
}
1
likes
0
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

Sentc sdk light with user and group management.

Homepage
Repository (GitHub)
View/report issues

Topics

#crypto #sdk #sentc #encryption

Documentation

Documentation

License

unknown (license)

Dependencies

ffi, flutter, flutter_rust_bridge, flutter_web_plugins, meta, plugin_platform_interface, sentc_common, uuid

More

Packages that depend on sentc_light