Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentclose/sentc
End-to-end encryption sdk with user management.
https://github.com/sentclose/sentc
encryption end-to-end-encryption flutter group-management javascript rust sdk sentc sentclose user-management
Last synced: 4 days ago
JSON representation
End-to-end encryption sdk with user management.
- Host: GitHub
- URL: https://github.com/sentclose/sentc
- Owner: sentclose
- License: agpl-3.0
- Created: 2022-07-16T08:39:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-28T13:29:08.000Z (3 months ago)
- Last Synced: 2024-09-28T13:35:07.328Z (3 months ago)
- Topics: encryption, end-to-end-encryption, flutter, group-management, javascript, rust, sdk, sentc, sentclose, user-management
- Language: Rust
- Homepage: https://sentc.com/
- Size: 19.7 MB
- Stars: 43
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
````shell
cargo build --release
````### Build javascript (wasm)
1. Build with wasm pack in `implementation/js/sentc_wasm`
````shell
cd ./implementation/js/sentc_wasm
````````shell
wasm-pack build --target web
````2. Build typescript code in `implementation/js/sentc_wasm`
````shell
cd ./implementation/js/sentc_wasm
````````shell
npm run build
````### Build flutter
Build with flutter rust bridge and cargo-ndk.
1. In the current workspace, generate the flutter code
````shell
flutter_rust_bridge_codegen --rust-input implementation/dart/sentc_flutter_rust/src/sentc.rs --dart-output implementation/dart/sentc/lib/generated.dart --llvm-path
````2. build the android code with cargo-ndk in `implementation/dart/sentc_flutter_rust`
````shell
cd ./implementation/dart/sentc_flutter_rust
````````shell
cargo ndk -t armeabi-v7a -t arm64-v8a -t x86 -t x86_64 -o ../sentc/android/src/main/jniLibs build --release
````