sentc 0.15.2 copy "sentc: ^0.15.2" to clipboard
sentc: ^0.15.2 copied to clipboard

An end to end encryption sdk for every developer. The sdk is focused on group encryption and supports child and connected groups.

Sentc #

from sentclose.

Sentc is 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");

  //encrypt a string for the group
  final encrypted = await group.encryptString("hello there!");

  //now every user in the group can decrypt the string
  final decrypted = await group.decryptString(encrypted);

  print(decrypted); //hello there!

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

  //delete a user
  await user.deleteUser("password");
}
copied to clipboard
3
likes
125
points
83
downloads

Publisher

unverified uploader

Weekly Downloads

2024.11.12 - 2025.10.07

An end to end encryption sdk for every developer. The sdk is focused on group encryption and supports child and connected groups.

Homepage
Repository (GitHub)
View/report issues

Topics

#crypto #sdk #sentc #encryption

Documentation

Documentation
API reference

License

AGPL-3.0 (license)

Dependencies

flutter, flutter_rust_bridge, path, plugin_platform_interface, sentc_common

More

Packages that depend on sentc

Packages that implement sentc