News for hackers. Stuff that matters.
Re:How to securely encrypt a file with an insecure password ... by one_off_comment on Wednesday January 19, 2022 @02:46PM (#29998978)
Tangential thought: if you're using a passphrase you're not going to ever type manually, for example something you're going to generate once and stick in a secret management system, why not build the passphrase using all possible UTF-8 characters as your corpus? Seems like restricting yourself to ASCII characters is just giving an advantage to those attempting to brute force the passphrase.
Re:How to securely encrypt a file with an insecure password ... by toast0 on Wednesday January 19, 2022 @04:20PM (#30000305)
> why not build the passphrase using all possible UTF-8 characters as your corpus? Seems like restricting yourself to ASCII characters is just giving an advantage to those attempting to brute force the passphrase.

Restricting yourself to ascii means you don't need to worry about text encoding. Who knows when you end up needing to paste it, or when something decides to be helpful and messes up the encodings.

Re:How to securely encrypt a file with an insecure password ... by resoluteteeth on Wednesday January 19, 2022 @03:51PM (#29999937)
This doesn't make much sense to me. The point of a passphrase is to be readable/writeable by a human. If you don't need that, you just want a binary key (which can be base64 encoded/decoded to be read/written by a human).

Using all utf-8 characters seems like it combines the downsides of both of these (not really human readable/writeable but also not using the full key space).

Re:How to securely encrypt a file with an insecure password ... by kzrdude on Wednesday January 19, 2022 @03:06PM (#29999242)
I'd be happy with just 32 bytes of random alphanumeric ascii, it doesn't really need improvement. If that gives a too big advantage, then use more.
Re:How to securely encrypt a file with an insecure password ... by tptacek on Wednesday January 19, 2022 @06:12PM (#30001842)
Because all possible UTF-8 characters give you passphrases that are hard to write down, hard to transcribe from paper onto keyboard or vice/versa, hard to repeat aloud, and hard to recognize visually.

The tradeoff for using a smaller character set is longer passphrases (for shorter character sets) versus "less humane" passphrases, for a given level of target entropy.