This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mint@mint ~/Desktop/firmas_digitales $ python cliente.py michelle@gmail.com texto_plano.txt elly@gmail.com -save | |
| El servidor es quien dice que es | |
| El servidor confirma que soy yo | |
| Crear usuario | |
| mint@mint ~/Desktop/firmas_digitales $ cat ../archivos/michelle@gmail.com_usuarios.usuarios | |
| elly@gmail.com 84691 4131393600897181 | |
| mint@mint ~/Desktop/firmas_digitales $ python cliente.py michelle@gmail.com texto_plano.txt kevin@gmail.com -save | |
| El servidor es quien dice que es | |
| El servidor confirma que soy yo | |
| Crear usuario |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mint@mint ~/Desktop/firmas_digitales $ cat texto_plano.txt | |
| hola hola hola como estas hola hola hola como estas hola hola hola como estas espero que bien | |
| este es un mensaje hola hola hola como estas hola hola hola como estas hola hola hola como estas encriptado | |
| espero que se encripte bien bien | |
| mint@mint ~/Desktop/firmas_digitales $ python cliente.py michelle@gmail.com texto_plano.txt elly@gmail.com | |
| El servidor es quien dice que es | |
| El servidor confirma que soy yo | |
| mint@mint ~/Desktop/firmas_digitales $ cat texto_cifrado.txx | |
| %oh$ohkgdmh ab;nioykhox | |
| %oh$ohkgdmh ab;nioykhox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mint@mint ~/Desktop/firmas_digitales $ python cliente.py elly@gmail.com texto_cifrado.txx michelle@gmail.com | |
| El servidor es quien dice que es | |
| El servidor confirma que soy yo | |
| DESCIFRAR | |
| ['%oh$ohkgdmh', 'ab;nioykhox'] | |
| ['0000110000010010000010000010010110001000001010111001001', '0001000011111100111101010100001101001100010011000011001'] | |
| [1698762959623625L, 2390864976815641L] | |
| [373061149196205L, 597159408560434L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mint@mint ~/Desktop/firmas_digitales $ python cliente.py michelle@gmail.com texto_plano.txt elly@gmail.com | |
| El servidor es quien dice que es | |
| El servidor confirma que soy yo | |
| CIFRAR | |
| hola | |
| [['h', 'o', 'l'], ['a']] | |
| ['010011000001101', '00010'] | |
| [9741, 2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Microsoft Windows [Versión 6.1.7601] | |
| Copyright (c) 2009 Microsoft Corporation. Reservados todos los derechos. | |
| C:\Users\Otro>cd firmas_digitales | |
| C:\Users\Otro\firmas_digitales>python cliente.py kurogane@gmail.com texto_plano.txt mokona@gmail.com | |
| No existe archivo de usuario, crear llaves | |
| Las llaves RSA se crearon en : 9 segundos | |
| El servidor es quien dice que es | |
| El servidor confirma que soy yo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C:\Users\Kevin>python reto.py 1234 27957058 653 44906647 | |
| La f(x) que se espera del servidor es 2468. | |
| El mensaje recuperado es 2468. | |
| El servidor es quien dice que es. | |
| C:\Users\Kevin>python reto.py 1234 27957059 653 44906647 | |
| La f(x) que se espera del servidor es 2468. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function daralta(){ | |
| $nombre=$_POST['nombre']; | |
| $e=$_POST['e']; | |
| $n=$_POST['n']; | |
| $enlace = conectarServidor(); | |
| if ($enlace){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script type="text/javascript" src="rutinas.js"> | |
| </script> | |
| </head> | |
| <body> | |
| <a href="inicio.php">Inicio</a> | |
| <br><br> | |
| <form onsubmit='return RSA()'> | |
| <input type='submit' value='Generar Llave'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import random | |
| def sonNumeros(arreglo): | |
| areNumber = True | |
| for i in xrange(1, len(arreglo)): | |
| if not arreglo[i].isdigit(): # Si alguno de los argumentos no son numeros | |
| areNumber = False | |
| break | |
| return areNumber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| include 'conectar.php'; | |
| include 'usuarios.php'; | |
| include 'rutinas_php.php'; | |
| $usuario=$_POST['usuarios']; #id del usuario | |
| $respuesta=$_POST['respuesta']; | |
| $reto=$_POST['reto']; |