Shared secret

In cryptography, a shared secret is a piece of data, known only to the parties involved, in a secure communication.

Uses your system voice; voice and rate in settings.

≈ 2 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

In cryptography, a shared secret is a piece of data, known only to the parties involved, in a secure communication. This usually refers to the key of a symmetric cryptosystem. The shared secret can be a PIN code, a password, a passphrase, a big number, or an array of randomly chosen bytes.

The shared secret is either shared beforehand between the communicating parties, in which case it can also be called a pre-shared key, or it is created at the start of the communication session by using a key-agreement protocol, for instance using public-key cryptography such as Diffie–Hellman or using symmetric-key cryptography such as Kerberos. The shared secret can be used for authentication (for instance when logging in to a remote system) using methods such as challenge–response or it can be fed to a key derivation function to produce one or more keys to use for encryption and/or MACing of messages.

To make unique session and message keys the shared secret is usually combined with an initialization vector (IV). An example of this is the derived unique key per transaction method. It is also often used as an authentication measure in web APIs.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1310539026 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot enwiki-001310539026 · captured 2025-09-10 · ledger · version history

Cite this page as: encyclopegia.org, “Shared secret”, snapshot enwiki-001310539026. https://encyclopegia.org/a/shared-secret

Sources cited in this revision

No external citation was extracted for this revision. That is a statement about the source, not a claim that none exists.