4 releases (2 breaking)

0.15.0 Oct 26, 2024
0.14.1 Sep 28, 2024
0.14.0 Aug 2, 2024
0.10.0 Aug 10, 2023

#7 in #sentc

Download history 2/week @ 2024-07-19 6/week @ 2024-07-26 112/week @ 2024-08-02 12/week @ 2024-08-09 14/week @ 2024-08-16 11/week @ 2024-08-23 14/week @ 2024-08-30 1/week @ 2024-09-06 20/week @ 2024-09-13 25/week @ 2024-09-20 240/week @ 2024-09-27 27/week @ 2024-10-04 17/week @ 2024-10-11 12/week @ 2024-10-18 138/week @ 2024-10-25 15/week @ 2024-11-01

184 downloads per month
Used in 9 crates (7 directly)

Custom license

115KB
3K SLoC

Sentc

from Sentclose

An end-to-end encryption sdk for developer with user management.

Available in:

  • Javascript for the web
  • Dart with flutter
  • Rust

Contains

  • User management: Register, login, authentication, authorisation
  • Group management: Invite or add member, role management, group encryption
  • Handling large files in browser and native

Build from source

Requirements:

  • Rust MRV 1.75.0
  • For flutter:
    • flutter_rust_bridge_codegen (cargo install flutter_rust_bridge_codegen)
    • cargo-ndk
    • llvm
    • flutter ffi (dart pub global activate ffigen)
  • For Javascript:
    • wasm-pack
    • node js min. version 14 lts

Build for rust

Build rust in the current workspace.

cargo build --release

Build javascript (wasm)

  1. Build with wasm pack in implementation/js/sentc_wasm
cd ./implementation/js/sentc_wasm
wasm-pack build --target web 
  1. Build typescript code in implementation/js/sentc_wasm
cd ./implementation/js/sentc_wasm
npm run build

Build flutter

Build with flutter rust bridge and cargo-ndk.

  1. In the current workspace, generate the flutter code
flutter_rust_bridge_codegen --rust-input implementation/dart/sentc_flutter_rust/src/sentc.rs --dart-output implementation/dart/sentc/lib/generated.dart --llvm-path <path-to-your-llvm>
  1. build the android code with cargo-ndk in implementation/dart/sentc_flutter_rust
cd ./implementation/dart/sentc_flutter_rust
cargo ndk -t armeabi-v7a -t arm64-v8a -t x86 -t x86_64 -o ../sentc/android/src/main/jniLibs build --release

Dependencies

~1–14MB
~184K SLoC