Skip to content
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

AppSettings missing #1

Closed
yeahia2508 opened this issue Mar 21, 2019 · 4 comments
Closed

AppSettings missing #1

yeahia2508 opened this issue Mar 21, 2019 · 4 comments

Comments

@yeahia2508
Copy link

yeahia2508 commented Mar 21, 2019

Below AppSettings dart file missing

if (_encrypter == null) {
        try {
          String key = AppSettings.key;
          String iv = AppSettings.iv;
          _encrypter = Encrypter(
            Salsa20(
              key,
              iv,
            ),
          );
        } catch (error) {
          print(error?.toString());
        }
      }
@yunusefendi52
Copy link
Owner

The key and iv property is meant to decrypt the url in database.db which to prevent abuse. I think I added it to .gitignore. For the workaround you can add the AppSettings with key and iv property or change the code like below:

String key = '';
String iv = '';

I am still looking the best way to expose the AppSettings without showing the real key
Let me know if that is working for you.

yunusefendi52 added a commit that referenced this issue Mar 23, 2019
@yeahia2508
Copy link
Author

Form where I can collect this key and iv?

@yunusefendi52
Copy link
Owner

Unfortunately, key and iv is the key to decrypt the link to the translation and I don't want the link to be abused

@yunusefendi52
Copy link
Owner

Closing this, please reopen if you still have this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants