5 ms·
64 bytes seems like an arbitrarily short limit for passphrases; it's going to be hashed at some point anyway (preferably with a decent KDF designed for the pur
by aidenn0 9y ago
64 bytes seems like an arbitrarily short limit for passphrases; it's going to be hashed at some point anyway (preferably with a decent KDF designed for the purpose) and 64 bytes is nowhere near long enough for natural English language text to be used to derive 32 bytes of entropy (estimates of English language text are ~1.5bits of entropy per character).
- RJIb8RBYxzAMX9u 9y agoAt the risk of invoking Cunningham's Law, nobody uses passphrases anywhere near 64 bytes that he / she has to memorize. And if you're using a password manager, just use the raw or hex key option. 32 bytes => 64 hex digits, which is probably not a coincidence. :-)
- takeda 9y agoPassword yes, passphprase it's quite possible.
- takeda 9y agoEh, Materialistic doesn't allow me to edit my comment. I mean you're right about passwords, but a passphrases (e.g. a sentences) are easy to remember, more secure and can often be longer than 64 bytes.
- yjftsjthsd-h 9y agoEr, of course it's not a coincidence; hex is base 16, so it takes 4 bits to represent each digit, which is half a byte. That is, hex always is 2 digits per byte. Or did I miss your point?
- Freaky 9y ago> At the risk of invoking Cunningham's Law, nobody uses passphrases anywhere near 64 bytes that he / she has to memorize. http://52.24.230.241/bc/password_generation.php http://52.24.230.241/bc/password_generation.php This produces memorable passphrases pretty close to that limit, as described in http://www-scf.usc.edu/~mghazvin/papers/marjan15.pdf http://www-scf.usc.edu/~mghazvin/papers/marjan15.pdf
- ryao 9y agoI suggest posting this feedback in the pull request. https://github.com/zfsonlinux/zfs/pull/5769 https://github.com/zfsonlinux/zfs/pull/5769
- pilif 9y agoIt’s using PBKDF2 with a configurable amount of rounds. So yeah. Strange it limits the length
- tcaputi 9y ago64 bytes is a bit arbitrary. Up until now I had not heard any complaints about this since most people I know who would use a 64 character passphrase are using a password manager instead. I am adding a test to the PR today and when I do I'll bump it to 512 bytes. We don't want arbitrary password lengths to prevent crazy amounts of passphrase hashing. We use PBKDF2 as a key derivation function, which is specifically designed to turn low entropy, arbitrary length strings into fixed length, high entropy keys suitable for encryption. It also has the added bonus of making password brute forcing significantly harder.