Skip to content

b2cm/hidy_keystore_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keystore_plugin

This Plugin makes Android KeyStore and iOS SecureEnclave usable for Flutter Apps. For now generating new keys and using them for signing data ist supported.

Getting Started

Generate a key and use it for signing:

final _osKeystoreBackendPlugin = OsKeystoreBackend();
var keyId = await _osKeystoreBackendPlugin.generateKey('secp256r1', true);
var sig = await _osKeystoreBackendPlugin.sign(
          keyId,
          ascii.encode('abcdefg'));

For more complex example please have a look at example.

Notes

  • On Android the plugin tries to use Strongbox first (only possible with curve secp256r1) if not available the trusted execution environment is used
  • On iOS only curve secp256r1 is supported

About

Flutter Plugin supporting key generation and signing with Android Keystore and iOS SecureEnclave

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published