seald_sdk_flutter 0.1.0-beta.mr99-16 seald_sdk_flutter: ^0.1.0-beta.mr99-16 copied to clipboard
Seald SDK for Flutter: simple end-to-end encryption for your app
seald_sdk_flutter #
SealdSDK allows you to use the full power of Seald encryption, directly in your Flutter application.
You can create and retrieve Seald identities for your app's users, encrypt and decrypt files, create encryption sessions, add or revoke recipients...
For more information, visit our website : https://seald.io
Example:
import 'package:seald_sdk_flutter/seald_sdk.dart';
Future<void> main() async {
final SealdSdk seald = SealdSdk(
apiURL: apiURL,
appId: appId,
);
// Creating a Seald identity
final SealdAccountInfo info = await seald.createAccountAsync(jwt);
// Encrypting / Decrypting data
final EncryptionSession es = await seald.createEncryptionSessionAsync([info.userId]);
final Uint8List encryptedFile = await es.encryptFileAsync(
Uint8List.fromList(utf8.encode('Secret file content')),
'SecretFile.txt',
);
final Uint8List decryptedFile = await es.decryptFileAsync(encryptedFile);
}
© 2023 Seald SAS