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

Can't decrypt an encrypted gallery #490

Open
JulienPalard opened this issue May 6, 2023 · 2 comments
Open

Can't decrypt an encrypted gallery #490

JulienPalard opened this issue May 6, 2023 · 2 comments

Comments

@JulienPalard
Copy link

I tried encrypting a gallery on current sigal main (sigal 2.4.dev46+g0923a56).

When I try decrypting it I'm getting:

Uncaught (in promise) Error: Fetched failed when checking encryption key
    onMessage [...]/static/decrypt.js:482
    onmessage [...]/static/decrypt.js:200
    _mSetupServiceWorker [...]/static/decrypt.js:199
    Decryptor [...]/static/decrypt.js:47
    Decryptor [...]/static/decrypt.js:35
    init [...]/static/decrypt.js:57
    <anonymous> [...]/:18
2 decrypt.js:482:54

I'm getting the same message with a bad password.

@saimn
Copy link
Owner

saimn commented May 8, 2023

Hi,
Sorry I cannot reproduce, so not sure what to do.
@dbw9580 - Maybe you have an idea ?

@dbw9580
Copy link
Contributor

dbw9580 commented Jul 4, 2023

Fetched failed when checking encryption key

the decryptor was trying to fetch and decrypt a file located at ${gallery_url}/static/keycheck.txt, to determine whether the password provided by the user is correct. The error was that file couldn't be fetched, probably due to a network error.

try {
response = await fetch(Decryptor.keyCheckURL);
} catch (error) {
throw new Error("Fetched failed when checking encryption key");

Please check whether the file is present at the URL.

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

3 participants