All Projects → Vanethos → flutter_rsa_generator_example

Vanethos / flutter_rsa_generator_example

Licence: other
Example of Generating RSA Keys

Programming Languages

dart
5743 projects
swift
15916 projects
kotlin
9241 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to flutter rsa generator example

flutter mentor app
Mentor app is built in flutter.
Stars: ✭ 39 (+25.81%)
Mutual labels:  flutter-examples
flutter webview
A complete tutorial series on Flutter webview.
Stars: ✭ 39 (+25.81%)
Mutual labels:  flutter-examples
DevQuiz
Dev.Quiz 👨‍💻 | Rocketseat 💜 - NLW 05 👩‍🚀
Stars: ✭ 25 (-19.35%)
Mutual labels:  flutter-examples
fancy bar
A fancy yet beautiful animated widget for your Flutter apps
Stars: ✭ 33 (+6.45%)
Mutual labels:  flutter-examples
flutter-samples
A collection of sample apps that use Stream
Stars: ✭ 238 (+667.74%)
Mutual labels:  flutter-examples
E-commerce
A Flutter E-commerce by implementing the Carousel and other flutter components
Stars: ✭ 36 (+16.13%)
Mutual labels:  flutter-examples
vpn app
Simple Vpn app concept UI done in Flutter.
Stars: ✭ 67 (+116.13%)
Mutual labels:  flutter-examples
BloodMS
🔥 🔥 🔥 A blood management project. 🔥 🔥 🔥
Stars: ✭ 48 (+54.84%)
Mutual labels:  flutter-examples
Manji
Manji is a mobile application built to help people learning Japanese learn about Kanji.
Stars: ✭ 142 (+358.06%)
Mutual labels:  flutter-examples
flutter auth
Instagram Authentication Flutter App Example
Stars: ✭ 42 (+35.48%)
Mutual labels:  flutter-examples
flutter-system
Flutter Widgets,Components,Demos,Pages:从入门到产品级开发
Stars: ✭ 29 (-6.45%)
Mutual labels:  flutter-examples
rijksbook
🖼 A basic Flutter app built for educational purposes
Stars: ✭ 37 (+19.35%)
Mutual labels:  flutter-examples
flutter and cloudinary
How to build Photo Diary App using Flutter and Cloudinary
Stars: ✭ 17 (-45.16%)
Mutual labels:  flutter-examples
boxgame
A sample project for following along a tutorial found on jap.alekhin.io.
Stars: ✭ 32 (+3.23%)
Mutual labels:  flutter-examples
flutter todos
A cross platform todo list app using flutter, sqlite etc. If you read the code, you will understand how to create simple elegant mobile app using Flutter and Dart language.
Stars: ✭ 60 (+93.55%)
Mutual labels:  flutter-examples
Flutter-Cryptowallet
Flutter based Cryptowallet App
Stars: ✭ 73 (+135.48%)
Mutual labels:  flutter-examples
LoginAndRegistrationWithSocialMedia
Created a Project to design login screen, registration screen, login with google ,slider navigation drawer,dashboard screen login with Facebook using Flutter
Stars: ✭ 82 (+164.52%)
Mutual labels:  flutter-examples
flutter pokedex
Pokedex app built with Flutter (with lots of animations) using Clean Architecture
Stars: ✭ 1,603 (+5070.97%)
Mutual labels:  flutter-examples
Flutter-Chat-Bar
Link to the package -. https://pub.dartlang.org/packages/flutter_chat_bar
Stars: ✭ 39 (+25.81%)
Mutual labels:  flutter-examples
calmly
Calmly is made with flutter to practice meditation to bring headspace and calmness. 😍💆🏼‍♂️
Stars: ✭ 34 (+9.68%)
Mutual labels:  flutter-examples

Flutter RSA Key Generator

This project shows how to use Pointy Castle to generate a RSA Key and encode it to a PKCS1 Pem String.

In order to generate a new RSA Keypair we use RSAKeyGenerator

AsymmetricKeyPair<PublicKey, PrivateKey> computeRSAKeyPair(
    SecureRandom secureRandom) {
  var rsapars = new RSAKeyGeneratorParameters(BigInt.from(65537), 2048, 12);
  var params = new ParametersWithRandom(rsapars, secureRandom);
  var keyGenerator = new RSAKeyGenerator();
  keyGenerator.init(params);
  return keyGenerator.generateKeyPair();
}

To be able generate the keys in a background thread we use Dart's Isolate implemented in Flutter's compute. We must ensure that the computeRSAKeyPair function is placed outside a Class so that it can be called globally.

Future<AsymmetricKeyPair<PublicKey, PrivateKey>> getRSAKeyPair(
  SecureRandom secureRandom) async {
  return await compute(computeRSAKeyPair, secureRandom);
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].