Skip to content

Do you use cryptography_flutter directly? #174

Discussion options

You must be logged in to vote

Through testing:

1) My flutter app
  -> cryptography_flutter
  -> myDartCryptoPackage
       -> cryptography
2) My flutter app
  -> myFlutterCryptoPackage
       -> cryptography
       -> cryptography_flutter

Both the above setups result in FlutterChachaPoly1305 being used,

  1. indirectly via Chacha20.poly1305Aead() which creates a FlutterChacha20 because cryptography_flutter is added as a dependency to my flutter package.
  2. directly via FlutterChacha20.poly1305Aead()

So in summary, no you do not need to use the classes in cryptography_flutter directly. Just add cryptography_flutter as a dependency to your app, or to your flutter package, and the Flutter classes will be used on supported pla…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rohintoncollins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant