Starting from:

$24.99

CE340 Final Assignment-Secure Authentication Protocol Solution


Title: Implementation of Secure Authentication Protocol (SAP)
Max # of project members is 2


Write a set of Sage/Python functions in a python script, which will implement an authentication system with digital signature shown in the following figure. When running the script it will read the source’s ID from ID.txt file, which contains full citizen registration data (kimlik bilgilerinin tamamı). Please, note that KH function for the source entity is KH = XOR(KRSRC, KUDST) and for the destination it is KH = XOR(KRDST, KUSRC).



A) Function list for the source:
1. H = H(ID): Computes and returns the hash value of the source node.
2. S = E(H, KH): Encrypts and returns the hash value, which is the signature (S) of the source. Note that the encryption is symmetric key.
3. CC = conc(X,Y): Concatenates X and Y and returns the result as CC.
4. KS: Generate a large integer denoting the session key. The key KS must have at least 10 digits.
5. Z=signID(conc [E(conc(ID,S), KS )), E(KS, KUDST)]).
6. Boolean send(Z, dest_IP): Sends the signed ID to the destination and returns True if successful otherwise returns False.
B) You will define the function list for the destination from the block diagram given above, and implement them as appropriate. For example, the verification function is something like

Verify(Hash_sent, Hash_computed): This will compare these (strings) and print “verified” if the input parameters are equal, otherwise it will print “Verification failed”


The report should prove (by screenshot) and explain the verification of the authentication of the source entity done by the destination. You will deliver at least two tests with 2 different IDs and different also with different Keys.


For the public key cryptography you need to use RSA system, which is explained in the slide set (on BB) named as public_key_crypto.pptx.

What to deliver?

1) Execution trace (e.g., screenshots) of each operation

More products