-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Error when trying to use Storage #92
Comments
You missed the Could not reproduce this error: https://replit.com/@qgustavor/megajs-issue-92#index.ts |
From your stack trace seems the error got thrown in the password derivation function, so looks like I could not reproduce this issue because the password in the example code is not the password that's causing this issue. Since this code is almost the same thing as tonistiigi's code, the only changes being stylistic changes, it should work pretty well... should, but looks like that is this issue. As you can check this code depends mostly on the password length. What is the length of password which is causing this issue for you? As you can see here currently test code checks for passwords with 8 byte length and 64 byte length, so maybe you found some edge case this code is not handling well. |
@qgustavor yeah that was just an example. My password is actually 10 characters so I'm gonna shorten it later and see if it works Edit: it finally works now thanks for the help! |
Maybe it was a bad idea to make the test code test only multiples of 16 bytes. The fix is simple: instead of Edit: There is another issue: at the moment only integration tests are run in Deno (which use the compiled library), not unit tests (which load parts of the code from the source), so, in fact, this code is not being tested. I will add the test case anyway, but fixing the tests will be part of another issue. |
I just a noticed a non-stylistic change in the code: tonistiigi's code is [email protected] was been released. I will close this issue. |
When trying to create
const storage
like so:It gives this error:
The text was updated successfully, but these errors were encountered: