berghain icon indicating copy to clipboard operation
berghain copied to clipboard

POW broken

Open craig opened this issue 1 year ago • 2 comments

After performing a few requests, the POW does show up. However, it cannot be solved by google-chrome-stable 121.0.6167.184-1:

pow

On Firefox 115.8.0esr-1~deb11u1, the first solve works (nice animation!) . After performing some more requests, I'm seeing the POW again, but something is broken:

pow2

craig avatar Feb 24 '24 20:02 craig

Currently berghain only works when connecting via HTTPS, as these browser APIs are not available without a encrypted connection

fionera avatar Feb 24 '24 20:02 fionera

I made a branch which should fix this by adding a fallback to a js implementation of sha256 but at the cost of filesize:

Without sha.js:
dist/index.html  6.48 kB │ gzip: 2.86 kB

With sha.js
dist/index.html  19.80 kB │ gzip: 7.68 kB

I could add both to the routing and return them conditionally, so that a HTTPS response always gets the smaller file and HTTP gets the bigger file. Don't know if that worth the effort as you have to increase the buffer-size to >20kb to fit the new file

fionera avatar Feb 25 '24 15:02 fionera

Fixed by #14

fionera avatar Nov 19 '24 19:11 fionera