ArticleslgStudy

computer science

Password Authenticated Key Exchange by Juggling

Password Authenticated Key Exchange by Juggling is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Password Authenticated Key Exchange by Juggling rather than just read about it. In short: The Password Authenticated Key Exchange by Juggling (or J-PAKE) is a password-authenticated key agreement protocol, proposed by Feng Hao and Peter Ryan. This protocol allows two parties to establish private and authenticated communication solely based on their shared (low-entropy) password without requiring a Public Key Infrastructure.

Key takeaways

  • Password Authenticated Key Exchange by Juggling belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Password Authenticated Key Exchange by Juggling to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Password Authenticated Key Exchange by Juggling from memory before moving on to harder problems.

Reference excerpt

The Password Authenticated Key Exchange by Juggling (or J-PAKE) is a password-authenticated key agreement protocol, proposed by Feng Hao and Peter Ryan. This protocol allows two parties to establish private and authenticated communication solely based on their shared (low-entropy) password without requiring a Public Key Infrastructure. It provides mutual authentication to the key exchange, a feature that is lacking in the Diffie–Hellman key exchange protocol.

Description Two parties, Alice and Bob, agree on a group G with generator g of prime order q in which the discrete log problem is hard. Typically a Schnorr group is used. In general, J-PAKE can use any prime order group that is suitable for public key cryptography, including Elliptic curve cryptography. Let s be their shared (low-entropy) secret, which can be a password or a hash of a password (s≠0). The protocol executes in two rounds.

Round 1 Alice selects x1∈R[0,q−1], x2∈R[1,q−1] and sends out gx1, gx2 together with the Zero-knowledge proofs (using for example Schnorr non-interactive zero-knowledge proof as specified in RFC 8235) for the proof of the exponents x1 and x2. Similarly, Bob selects x3∈R[0,q−1], x4∈R[1,q−1] and sends out gx3, gx4 together with the Zero-knowledge proofs for the proof of the exponents x3 and x4. The above communication can be completed in one round as neither party depends on the other. When it finishes, Alice and Bob verify the received Zero-knowledge proofs and also check gx2,gx4≠1. Round 2 Alice sends out A=g(x1+x3+x4)x2s and a Zero-knowledge proof for the proof of the exponent x2s. (Note Alice actually derives a new public key using gx1+x3+x4 as the generator). Similarly, Bob sends out B=g(x1+x2+x3)x4s and a Zero-knowledge proof for the proof of the exponent x4s. After Round 2, Alice computes K=(B/gx2x4s)x2=g(x1+x3)x2x4s. Similarly, Bob computes K=(A/gx2x4s)x4=g(x1+x3)x2x4s. With the same keying material K, Alice and Bob can derive a session key using a Cryptographic hash function: κ=H(K). The two-round J-PAKE protocol is completely symmetric. This helps significantly simplify the security analysis. For example, the proof that one party does not leak any password information in the data exchange must hold true for the other party based on the symmetry. This reduces the number of needed security proofs by half. In practice, it is more likely to implement J-PAKE in three flows since one party shall normally take the initiative. This can be done trivially without loss of security. Suppose Alice initiates the communication by sending to Bob: gx1,gx2 and Zero-knowledge proofs. Then Bob replies with: gx3,gx4,B=g(x1+x2+x3)x4s and Zero-knowledge proofs. Finally, Alice sends to Bob: A=g(x1+x3+x4)x2s and a Zero-knowledge proof. Both parties can now derive the same session key. Depending on the application requirement, Alice and Bob may perform an optional key confirmation step. There are several ways to do it. A simple method described in SPEKE works as follows: Alice sends to Bob H(H(κ)), and then Bob replies with H(κ). Alternatively, Alice and Bob can realize explicit key confirmation by using the newly constructed session key to encrypt a known value (or a random challenge). EKE, Kerberos and Needham-Schroeder all attempt to provide explicit key confirmation by exactly this method.

Security properties Given that the underlying Schnorr non-interactive zero-knowledge proof is secure, the J-PAKE protocol is proven to satisfy the following properties:

Off-line dictionary attack resistance - It does not leak any password verification information to a passive/active attacker. Forward secrecy - It produces session keys that remain secure even when the password is later disclosed. Known-key security - It prevents a disclosed session key from affecting the security of other sessions. On-line dictionary attack resistance - It limits an active attacker to test only one password per protocol execution. In 2015, Abdalla, Benhamouda and MacKenzie conducted an independent formal analysis of J-PAKE to prove its security in a random oracle model assuming algebraic adversaries.

The protocol design The J-PAKE protocol is designed by combining random public keys in such a structured way to achieve a vanishing effect if both parties supplied exactly the same passwords. This is somehow similar to the Anonymous veto network protocol design. The essence of the idea, however, can be traced back to David Chaum's original Dining Cryptographers network protocol, where binary bits are combined in a structured way to achieve a vanishing effect.

The implementation J-PAKE has been implemented in OpenSSL and OpenSSH as an experimental authentication protocol. It was removed from the OpenSSH source code at the end of January 2014. It has also been implemented in Smoke Crypto Chat Messenger, in NSS and was used by Firefox Sync version 1.1 but discontinued in 1.5 which uses a different key exchange and storage method. Mozilla's J-PAKE server was shut down along with the Sync 1.1 storage servers on 30 September 2015. Pale Moon continues to use J-PAKE as part of its Sync service. Since February 2013, J-PAKE has been added to the lightweight API in Bouncycastle (1.48 and onwards). J-PAKE is also used in the Thread (network protocol)

Standardization J-PAKE was included in ISO/IEC 11770-4 (2017) as an international standard. It is also published in RFC 8236.

References

External links J-PAKE RFC 8236 A Java prototype of J-PAKE using the finite field A Java prototype of J-PAKE using the elliptic curve A C implementation of Elliptic Curve J-PAKE in ARM mbed A Java implementation of J-PAKE in Bouncycastle J-PAKE: From Dining Cryptographers to Jugglers

Worked examples

Example 1 — a first encounter with Password Authenticated Key Exchange by Juggling

Start with the simplest possible case. Write down what Password Authenticated Key Exchange by Juggling claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Password Authenticated Key Exchange by Juggling before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Password Authenticated Key Exchange by Juggling ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Password Authenticated Key Exchange by Juggling

In research
Password Authenticated Key Exchange by Juggling appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Password Authenticated Key Exchange by Juggling in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Password Authenticated Key Exchange by Juggling is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cryptographic protocols, so understanding it makes those chapters shorter.
In everyday life
Look for Password Authenticated Key Exchange by Juggling outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Password Authenticated Key Exchange by Juggling” →

How to study Password Authenticated Key Exchange by Juggling in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Password Authenticated Key Exchange by Juggling means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Password Authenticated Key Exchange by Juggling out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Password Authenticated Key Exchange by Juggling in simple terms?

The Password Authenticated Key Exchange by Juggling (or J-PAKE) is a password-authenticated key agreement protocol, proposed by Feng Hao and Peter Ryan. This protocol allows two parties to establish private and authenticated communication solely based on their shared (low-entropy) password without…

Why does Password Authenticated Key Exchange by Juggling matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Password Authenticated Key Exchange by Juggling?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Password Authenticated Key Exchange by Juggling.

Tags

  • Cryptographic protocols

Keep exploring