Score:2

New WireGuard private key begins 'WEAK' - is this a warning?

il flag

I generated a WireGuard key in a virtual machine using the standard procedure wg genkey | tee privatekey | wg pubkey > publickey. The VM is running via KVM with virtio RNG backed by /dev/urandom.

The private key that was generated looks like this:

WEAKqv5b*****************************SS5w2M= (Asterisks added by me, the censored characters look like normal randomness)

Is there a special meaning to a key that begins WEAK? Or is this just a case of humans finding patterns in randomness?

I generated a new key out an abundance of caution, and it does not exhibit this pattern.

A.B avatar
cl flag
A.B
I'd say you had 1/2^21 chance of generating a key starting with `WEAK`.
Score:3
cn flag

That's a funny coincidence, but WireGuard isn't trying to tell you anything -- it just reads 32 bytes from /dev/urandom, and uses whatever comes out as the key (after a tiny bit manipulation to make it ready for Curve25519). In this case, the first 3 bytes, when base64 encoded, happened to spell WEAK.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.