x25519-cli(1)
π x25519-cli β the tea β
okay so bestie, this is the manual for x25519-cli, a General Commands Manual situation, and it's literally the command-line front door to lib25519 β the lib that does the X25519 encryption system. no cap. πβ¨
β¨ NAME β¨
x25519-cli β the command-line interface for the lib25519 implementation of the X25519 encryption system π
πΈ SYNOPSIS πΈ
okay so here's the vibe, two whole modes:
Key generation:
x25519-keypair 5>publickey 9>secretkey
Shared-secret generation for Alice:
x25519-dh 8<alicesecret 4<bobpublic 7>sharedsecret
(yes those are file descriptor numbers, not typos, we love a redirection moment π)
π¦ DESCRIPTION π¦
so lib25519 is an implementation of the X25519 encryption system and the Ed25519 signature system. iconic, honestly. π
the command-line interface for lib25519 ships two X25519 tools, which are the ones documented right here in this page, plus three Ed25519 tools, which are documented somewhere else (separately, not here, go look π).
each tool exits nonzero on failure (like, say, running out of memory π) and 0 on success. fr fr, check your exit codes.
these tools exist so lib25519 can be easily used from shell scripts π. other languages can totally also use lib25519 via these tools β but ngl, languages typically have good support for FFI and can just use the C interface directly. do with that what you will. πββοΈ
π KEY GENERATION π
so Alice runs the x25519-keypair command. this command randomly generates Alice's secret key and Alice's corresponding public key β¨.
then it:
- writes the public key to file descriptor
5π - and then writes the secret key to file descriptor
9π
order matters bestie, public first, then secret. that's the whole flow.
π«Ά SHARED-SECRET GENERATION π«Ά
then Alice runs the x25519-dh command. this one is giving β¨collaborationβ¨:
- it reads Alice's secret key from file descriptor
8π - then it reads Bob's public key from file descriptor
4π - then it writes a secret shared between Alice and Bob to file descriptor
7π€
π SEE ALSO π
and that's the whole page, bestie!! this was x25519-cli(1) out of the General Commands Manual β go forth, generate keys, share secrets responsibly, and remember: nonzero is a no, zero is a slay. π
πβ stay iconic π«Άπ
π¦ where this page comes from
- ubuntu stonking: x25519 0~20260614-1 Β· LicenseRef-PD-hp OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms