konsultaner / connectanum-dart

This is a WAMP client (Web Application Messaging Protocol) implementation for the dart language and flutter projects.
MIT License
22 stars 14 forks source link

Cache stored key for scram authentication #43

Closed konsultaner closed 1 month ago

konsultaner commented 2 years ago

Once the stored key was created, it is likly that a router will not change the kdf or kdf options. So caching reduces a lot of initial performance for higher kdf iteration values. Especially when using SCRAM on mobile devices.

https://github.com/konsultaner/connectanum-dart/blob/e2c9d25243ae3298038711b88705c0693639b4cc/lib/src/authentication/scram_authentication.dart#L98-125