-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow passing cipher to Hive store #62
Comments
Since the codebase seems to be mostly static, my suggested implementation would be to make Or, for better UX, maybe make it Then, for backwards compatibility, the I would also add a big warning in the README that the store is not encrypted by default, and an example on how to use the AES cipher with (Note: I'm not familiar with this codebase, or Dart in general really, so let me know if you have something else in mind) |
Your proposition seems really good, and I really think it should be implemented that way, but as I was tweaking with the
This exception will concern anyone who will have several scripts using requests with a unique encryption key since the store name will be the same for every instance. I'm currently trying finding a way to make the save file unique to each instance of requests but also thinking that storing the cookies in memory could be a better alternative, encrypted or not. |
Presumably, if the scripts are using the same cookie file they should be using the same encryption key when using |
Follow-up to #1.
The current implementation uses
newHiveDefaultVaultStore
without passing theencryptionCipher
parameter; as far as I can tell this simply stores the cookies in plain text under/tmp/cookievault.hive
:Currently the Hive store is
static final
and cannot be changed by the user:requests/lib/src/common.dart
Lines 15 to 22 in 01768ea
Since the recent move has been to detach from
flutter
, I think the glue for storing and providing the encryption key forHiveAesCipher
should be left to the user, for example by storing the AES key influtter_secure_storage
. However, for this to be feasible, there should be a way for the user to customize the store before initialization.The text was updated successfully, but these errors were encountered: