flutter_key_store_cryptography 1.0.1 copy "flutter_key_store_cryptography: ^1.0.1" to clipboard
flutter_key_store_cryptography: ^1.0.1 copied to clipboard

This plugin helps you by generating the assymetric RSA key pair, using which you can use encrypt and verify. The keys are generated and persisted in android/ios keystore.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_key_store_cryptography/cipher.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'CustomAlertBox Package'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  var publicKey;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Text(
            'to show custom alert box please click floating action button.'),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
         publicKey = await Cipher.getPublicKey();
        },
        tooltip: 'Show Custom Alert Box',
        child: Icon(Icons.message),
      ),
    );
  }
}
12
likes
35
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

This plugin helps you by generating the assymetric RSA key pair, using which you can use encrypt and verify. The keys are generated and persisted in android/ios keystore.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_key_store_cryptography

Packages that implement flutter_key_store_cryptography