X25519 is an elliptic-curve Diffie-Hellman function over Curve25519, specified in RFC 7748, used to agree a shared secret between two parties.
X25519 is the Diffie-Hellman function built on Curve25519, designed by Daniel J. Bernstein and standardised for IETF use in RFC 7748. Each party generates a 32-byte private scalar and publishes a 32-byte public value. Combining your own private value with the other party's public value yields the same 32-byte shared secret on both sides, which is then passed through a key derivation function such as HKDF to make encryption keys. The curve was chosen for speed, simple constant-time implementations and resistance to many implementation pitfalls: any 32-byte string is a valid public key, and the scalar is clamped to avoid small-subgroup issues. X25519 is used in TLS 1.3, SSH, Signal, WireGuard and HPKE (RFC 9180), where it is one of the standard KEMs. Its limitation is that Shor's algorithm on a large quantum computer would break it, so data recorded today could be decrypted later if it relied on X25519 alone. For that reason, protocols are adopting hybrids that pair X25519 with a post-quantum KEM such as ML-KEM, so security holds if either component remains unbroken. BotPassword uses X25519 as the classical half of a hybrid recipient KEM.