kms_flutter 0.1.0 copy "kms_flutter: ^0.1.0" to clipboard
kms_flutter: ^0.1.0 copied to clipboard

unlisted

Key Management Service for Flutter applications. Supports Keystore (Android), Keychain (iOS / Mac OS X), and browsers.

example/lib/main.dart

import 'package:kms/kms.dart';
import 'package:kms_flutter/kms_flutter.dart';

Future<void> main() async {
  // In browsers, returns BrowserKms.
  // In other platforms, returns PluginKms.
  final kms = flutterKms();

  // Create a key pair.
  final keyPairDocument = await kms.collection('example').createKeyPair(
        keyExchangeType: null,
        signatureType: SignatureType.ed25519,
        keyDocumentSecurity: KeyDocumentSecurity.highest,
      );

  // Sign a message
  final signature = await keyPairDocument.sign([1, 2, 3]);
  print('Public key: ${signature.publicKey}');
  print('Signature: $signature');

  // ...

  // Delete
  await keyPairDocument.delete();
}
2
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Key Management Service for Flutter applications. Supports Keystore (Android), Keychain (iOS / Mac OS X), and browsers.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

collection, cryptography, flutter, flutter_secure_storage, kms, meta

More

Packages that depend on kms_flutter