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.

  • I'd say you had 1/2^21 chance of generating a key starting with WEAK.
    – A.B

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.