3 ms·
I wonder how much entropy there really is though. It's a non-trivial calculation to explore the tree of all legal moves. Plus there's the problem of how some se
by Terr_ 2y ago
I wonder how much entropy there really is though. It's a non-trivial calculation to explore the tree of all legal moves. Plus there's the problem of how some sequences are much more popular than others, so if a user does those they ought to represent a weak input rather than a strong one.
For a secret that is a sequence of N moves, one would need to know how many legal N-move sequences exist under the rules, and then you'd need to somehow weigh those by how popular they are. Un-inuitive or "bad" moves should be worth more when it comes to security.
If the secret is the final board state, it gets even trickier because many different inputs can lead to the same state, oscillating a rook back and forth adds to the move-count but not the entropy.
- wayho 2y agoHi, I'm the dev of this extension. To be honest, this was a quick idea that I had and not much thought was put into the actual entropy, except for the addition of random special characters in between the moves. I'm looking into adding a mode that allows the user to move any piece anywhere on the board, disregarding chess moves. Apart from that, I am also looking into adding other notations apart from algebraic notation system that can even be interchanged in the middle of writing your password. I'm also looking at improving the password strength score the extension provides, as currently it's a simple point system where: - if (password.length > 8) strength += 1 - if (password.length > 14) strength += 2 - if (password.match(/[a-z]/)) strength += 1 - if (password.match(/[A-Z]/)) strength += 1 - if (password.match(/\d/)) strength += 1 - if (password.match(/[^a-zA-Z\d]/)) strength += 2 At the end of the day, same as a regular password, it is up to the user to decide the best approach on creating the password. Moving a pawn up a couple times will never make a good password :) For a detailed look into this extension, the code is public on https://github.com/NathanPortelli/ChessLock https://github.com/NathanPortelli/ChessLock.