alt.hn

5/19/2025 at 8:16:13 PM

WireGuard vanity keygen

https://github.com/axllent/wireguard-vanity-keygen

by simonpure

5/19/2025 at 9:40:12 PM

Reminds me of people where I worked having vanity GPG key ids. I'm wondering how much CPU time and on what machines it took to find them.

by burnt-resistor

5/19/2025 at 11:00:43 PM

For vanity GPG keys, I came up with a neat trick where you could insert arbitrary ASCII art into your key. You construct your ASCII art using the Base64 character set. The decoded binary will be gibberish but you can place it in an inert Literal Data Packet that will be ignored by any conformant OpenPGP parser. It just takes a little finagling to align your data to a 3-byte boundary with appropriate line wrapping.

by rgovostes

5/20/2025 at 4:37:33 AM

Key IDs are based on fingerprints and fingerprints are calculated by SHA-1 hashing the primary key's public key and the creation timestamp. A computationally easy way to influence the fingerprint is to tweak the creation timestamp which is a 32 bit Unix epoch value. Of course it needs to be in the past so the range is limited but it's faster to do it this way instead of recomputing the cryptographic key.

by wiktor-k

5/20/2025 at 5:24:31 AM

> the creation timestamp which is a 32 bit Unix epoch value.

GPG keys aren't 2038-safe?

by yjftsjthsd-h

5/20/2025 at 11:46:49 AM

It's a 32-bit unsigned integer, so that should give us until Feb 2106.

> A time field is an unsigned 4-octet number containing the number of seconds elapsed since midnight, 1 January 1970 UTC.

by dpwm

5/20/2025 at 2:54:11 AM

I love that the app has ARM64 builds for Windows. I use a Windows ARM64 laptop daily, and every native ARM64 build I come across brings me joy.

Take note, Discord.

by sedatk

5/20/2025 at 5:58:53 AM

It’s funny (and annoying) the disparity between Arm builds for macOS and Windows. I understand why it happens but even Microsoft has produced Arm native versions of apps for macOS before Windows.

by jimjambw

5/21/2025 at 4:49:04 AM

> Take note, Discord.

I highly recommend Legcord[1] - it's a alternative, open-source client that has very good ARM builds

1. https://legcord.app/

by mbs159

5/21/2025 at 5:08:33 PM

I’m using Legcord at the moment. I’d prefer to use the official client though.

by sedatk

5/20/2025 at 7:26:48 AM

Discord? Why use the native app instead of just the browser version? Use e.g. Ferdium (https://ferdium.org/) to have all your messaging apps in one place.

by moontear

5/20/2025 at 7:53:07 AM

Because that way you have everything under one electron app that is maintained by one person.

by that_lurker

5/20/2025 at 7:02:05 PM

How do you keep the browser version "in tray"?

by sedatk

5/20/2025 at 10:24:01 AM

Discord is the worst app on Windows ARM64 right now. Even win32 games run better and faster it's crazy.

by hypercube33

5/20/2025 at 12:50:00 AM

Given a situation in which you have a decent way to guess user names, such as ‘first-initial-lastname’ how much entropy does this take away?

It seems like I’ve seen several of these over the years when a patch to parse comments would probably be simpler and less of an anti-pattern. What am I missing here?

Edit: or a config dir that allows multiple key files.

by jethro_tell

5/20/2025 at 8:17:24 AM

I’m not a crypto expert at all, but surely it takes away no entropy because the fixed prefix is on the public key not the private key?

My reasoning is that the full public key could be seen as a 256 bit fixed prefix, but knowing the public key is meant to give no information about the private key by design.

by bspammer

5/20/2025 at 6:16:46 PM

That may be true, but I don't think that it is obviously so.

If it were, then public keys could be shorter by the same amount and still provide the same level of protection.

But by design they are not.

by colanderman

5/21/2025 at 8:38:11 AM

I still think my reasoning holds.

Let's say that I magically manage to find a private key whose public key has a chosen prefix that is the entire length of the key - i.e. the entire key is vanity. Something like myveryveryveryverylongvanitypublickey. Is that equivalent to a 0 length public key in terms of security? I'd say obviously not - there is still no way to get started when it comes to finding the private key.

by bspammer

5/22/2025 at 4:33:44 PM

If you've found the private key for myveryveryveryverylongvanitypublickey, then so can an adversary.

Perhaps they already have reversed it because they guessed it might be desirable. Or maybe it has numeric properties which make it specifically easy to reverse (perhaps why you were able to discover it yourself).

(Also note that selecting the entire key to be vanity doesn't reduce the entropy to 0, just to the entropy of the vanity phrase. So a full vanity key may be equivalent to something like a 32-bit random public key.)

by colanderman

5/20/2025 at 12:32:59 AM

Setup my first WG server last month. WG key gen obligingly put an f-bomb by the front of the key. "You're welcome" I said. True story.

by WarOnPrivacy

5/20/2025 at 7:06:04 AM

I'd like to see mentions/confirmation that it has top-notch randomness so that nobody else can come up with the same keys.

by kuratkull

5/20/2025 at 6:24:27 AM

Would this run faster on a gpu?

by turblety

5/20/2025 at 10:55:49 AM

Yes, I've generated crypto wallet vanity keys on GPUs (OpenCL) and I'd say it's about 10-20x faster than a CPU depending on which kind of key and how the code's written.

by nevi-me

5/20/2025 at 3:07:38 PM

[dead]

by ayastrebov3

5/19/2025 at 11:28:25 PM

[dead]

by faeeafeae

5/19/2025 at 11:20:32 PM

[dead]

by fdslkfsld

5/20/2025 at 6:36:51 AM

[dead]

by ayastrebov2

5/20/2025 at 1:46:03 AM

[flagged]

by Calwestjobs

5/20/2025 at 9:19:06 AM

No you didn't

by theblazehen

5/20/2025 at 10:07:58 AM

Sure, he did.

by Calwestjobs