Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 360927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:32:08+00:00 2026-05-12T12:32:08+00:00

Alice & Bob are both secret quadruple agents who could be working for the

  • 0

Alice & Bob are both secret quadruple agents who could be working for the US, Russia or China. They want to come up with a scheme that would:

  1. If they are both working for the same side, prove this to each other so they can talk freely.

  2. If they are working for different sides, not expose any additional information about which side they are on.

Oh, and because of the sensitive nature of what they do, there is no trusted third party who can do the comparison for both of them.

What protocol would be able to satisfy both of these needs?

Ideally, any protocol would also be able to generalize to multiple participants and multiples states but that’s not essential.

I’ve puzzled over it for a while and I can’t find a satisfactory solution, mainly owing to condition 2.

edit: Here’s the original problem that motivated me to look for a solution. “Charlie” had some personal photos that he shared with me and I later discovered that he had also shared them with “Bob”. We both wanted to know if we had the same set of photos but, at the same time, if Charlie hadn’t shared a certain photo with either of us, he probably had a good reason not to and we didn’t want to leak information.

My first thought would be for each of us to concatenate all the photos and provide the MD5 sum. If they matched, then we had the same photos but if they didn’t, neither party would know which photos the other had. However, I realized soon after that this scheme would still leak information because Bob could generate an MD5 for each subset of photos he had and if any of them matched my sum, he would know which photos I didn’t have. I’ve yet to find a satisfactory solution to this particular problem but I thought I would generalize it to avoid people focusing on the particulars of my situation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:32:08+00:00Added an answer on May 12, 2026 at 12:32 pm

    For both problems, you could use a Secure two-party computation equality-algorithm. There are many schemes, for example this by Damgard, Fitzi, Kiltz, Nielsen and Toft: Unconditionally Secure Constant Round Multi-Party
    Computation for Equality, Comparison, Bits and Exponentiation
    .

    Of course an agent could try to pose as an agent from another side to get a 1/3 chance to discover the true side of another agent, but that seems unavoidable.

    A much simpler scheme for the photo-problem, which should be almost as good as the secure multiparty computation, is the following:

    1. Alice and Bob sorts their pictures and generate a SHA-512 hash.
    2. Alice sends the first bit of her hash to Bob.
    3. Bob compares the bit to the first bit of his hash. If it is different, they know that they have received different photos. Otherwise they continue.
    4. Bob sends the second bit of his hash to Alice.
    5. Alice checks this bit and decides whether to continue.
    6. Continue until the protocol aborts or all bits have been checked.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Permutation Game (30 Points) Alice and Bob play the following game: 1) They choose
Let's say you have two Control s, Alice and Bob, and you want to
Say we have Alice and Bob. Alice sends Bob a message she encrypted with
Im doing a project where Alice and Bob send each other messages using the
I'm new to Git. Let's say Alice and Bob had been developing their project
Given two tables APPLE and ORANGE, NAME APPLES Alice 5 Bob 10 Trudy 1
Say I have the following XML snipit: <ul> <li>alice</li> <li>bob</li> <li>carla</li> <li>dave</li> <li>eric</li> <li>fanny</li>
Totally new to Spring & Java development but working on a project for a
I have links like http://example.com?query1=query1&query2=query2 as href of anchor tag. I want to do
Hey all, have been working on designing a new database for work. They have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.