jueves, 13 de septiembre de 2012

#week number 5

This time, the homewoork is a simple server -  client with protocole rsa


Firsth the client try to conect to client
when the server detecte  the conexion of client start the protocole

1-. the server send x to client
2-. the client send messege encrupte
3-. the server desencripte and compere the y of server with the cliente
4-. if its the same the sounds is good
5-. if its different its to bad :C


We created two base data
one for user
one for the publi keys

The code of server:

The code of client:

The code of generet keys:



hire som image for some calcule of "d"

Some print screen
hire d = 3
N = 35
e = 23



The client sends a "d" and "n" and the server before it sends an x to use the function (x) and the client send its function, if  we are see where it says yyyy = 16 is the calculation server and Y is the calculation using the keys in this case, will leave the program.





In this image is about the code generet keys, this  generet value n,e,phie and verific if the numers are coprime, for used in ecuclides algoritm in paper :C


Links reference:



1 comentario:

  1. Pues, la ortografía sigue apestando y la parte de implementar una función f(x) que se use ambos en cliente y en servidor está extrañamente implementado, demasiado complicado. No uses pow para elevar a exponentes bajo un módulo. Van 5 pts.

    ResponderEliminar