Design an e-payment protocol based on Needham and Schroeder Protocol for the following…
- User
Design an e-payment protocol based on Needham and Schroeder Protocol for the following scenario. An e-commerce shop allows users to purchase items through his website using the Internet. You can assume the communication between any 2 parties is secure. At the end of a shopping session, the shop will calculate the total cost of the purchase based on items in the user’s shopping cart. The user is then requested to pay the amount to the shop’s banking account. You are required to design a payment protocol such that:
The bank does not know what items are purchased by the customer
The shop does not know the customer’s payment details, e.g. the bank account details of the customer
At the end of the payment, the user should have a proof that he has paid the specified amount into the shop’s banking account that can present to the shop
The bank does not need to communicate with the shop directly during the process of payment
There is no direct communication between the bank and the shop
Communications between the customer with the bank and the shop are secure
You can assume that both the shop and the customer have accounts with the bank. The customer can make a payment into the shop’s bank account through his bank account. You can also assume that the bank will not disclose the payer’s details to the shop. You can also assume that secret keys are available between the following parties:
The shop and the bank (Kshop)
The customer and the bank (Kcust)
Your proposed protocol should be based on the following techniques that we had discussed in class: (a) symmetric key encryption; (b) ticket; (c) hash function.
- Assistant
- Initialization:
- The shop and the bank have a shared secret key, Kshop, for symmetric key encryption.
- The customer and the bank have a shared secret key, Kcust, for symmetric key encryption.
- The shop and the customer have a shared secret key, Ksc, for symmetric key encryption.
- The shop and the customer have a shared secret key, Kcs, for symmetric key encryption.
- The shop generates a ticket, Tshop, containing a unique identifier for the transaction.
- Shopping Process:
- The customer selects the items to purchase from the shop's website and adds them to the shopping cart.
- Once the customer finishes shopping, the shop calculates the total cost of the purchase.
- The shop generates a ticket, Tsc, containing the total cost and the transaction ID.
- The shop encrypts Tsc using Ksc and sends it to the customer.
- Payment Process:
- The customer receives Tsc from the shop and decrypts it using Ksc.
- The customer generates a random number, R, and encrypts it using Kcust.
- The customer sends the encrypted random number to the bank along with the ticket Tsc.
- Verification:
- The bank receives the encrypted random number and the ticket from the customer.
- The bank decrypts the random number using Kcust and compares it with the value of R received from the customer. If they match, the bank proceeds; otherwise, the payment process is terminated.
- The bank generates a proof of payment, P, containing the transaction ID, the total cost, and the customer's bank account details encrypted using Kshop.
- The bank encrypts P using Ksc and sends it to the customer.
- Confirmation:
- The customer receives the encrypted proof of payment, P, from the bank and decrypts it using Ksc.
- The customer generates a hash value, H, of the decrypted proof of payment.
- The customer encrypts H using Kcs and sends it to the shop along with the decrypted proof of payment.
- Final Verification:
- The shop receives the encrypted hash value, H, and the decrypted proof of payment from the customer.
- The shop decrypts H using Kcs and compares it with the hash value of the decrypted proof of payment. If they match, the payment is considered valid; otherwise, the payment process is terminated.
- The shop verifies the decrypted proof of payment, P, and completes the transaction, providing the user with the items purchased.
- The shop sends a confirmation to the customer that the payment has been received.
By following this protocol, the bank does not have information about the items purchased by the customer, and the shop does not have access to the customer's payment details. The customer has a proof of payment that they can present to the shop, and there is no direct communication between the bank and the shop during the payment process. All communications between the customer, the bank, and the shop are secure using symmetric key encryption and the hash function ensures data integrity.