Is there a flutter library for access to secure enclave?
There are no packages for this, but You could easily develop Your own Flutter plugin. Check the docs for Flutter plugin development (link). Flutter plugin is nothing but a fancy name for a Dart package that does some stuff on iOS and Android (natively).
In essence, it boils down to writing quite simple wrapper classes and then calling native methods from there. If You ever had any experience with native development, it will be a piece of cake for you. :)
You can use the source code of FlutterSecureStorage plugin as a reference. It has some smaller issues, but it's a great starting point.
I hope You will make it and then write back with a github or pub.dev link! :)
![domoarigato](https://i.stack.imgur.com/qbg3j.jpg?s=256&g=1)
domoarigato
Updated on December 12, 2022Comments
-
domoarigato over 1 year
I've recently started using Flutter for mobile app development, which, in my case, usually involves cryptography. I'd like to be able to generate/use keys in the secure enclave on iOS and the keystore on Android, per the documentation provided in the links above.
I've found a library for secure storage and, of course there is PointyCastle, but none of these options allow private keys to be generated and stored specifically in the enclave, without insecure handling in application code.
Is this available yet?
-
10101010 almost 5 yearsIsn't
secure enclave
exclusive to ios? -
domoarigato almost 5 yearsedited to clarify
-