kms 0.1.0 kms: ^0.1.0 copied to clipboard
Key Management Service (KMS) API for managing cryptographic keys securely.
import 'package:kms/kms.dart';
Future<void> main() async {
final kms = MemoryKms();
final kmsKey = await kms.createKeyPair(
keyRingId: 'example',
keyExchangeType: null,
signatureType: SignatureType.ecdsaP256Sha256,
);
final signature = await kms.sign([1, 2, 3], kmsKey);
print('Signature: ${signature.bytes}');
print('Public key: ${signature.publicKey}');
}