Beruflich Dokumente
Kultur Dokumente
AportesindividualesLUISANGELMEJIA
AVENDAO
Ejercicio1:
Construyaunamatriz2x2convenienteparausarcomoclaveenelSistemadeCifradodeHillyconellacifrar
elsigu
ientemensaje:Elhombresabio.
Inicialmentesetomaelalfabetoyacadaletraseleasingaunnmeroentero:
ABCDEFGHIJKLMNOPQRSTUVWXYZ
01234567891011121314151617181920212223242526
SeescogeunamatrizCdetamaonxnconentradasenlosnmerosenterostalquesudetermina
ntesea1.Estamatrizserlaclavedelsistemadecifrado.Paraesteejerciciotomaremosun
amatriz2x2.
5
] = (5 5) (3 8) = 1
Elmensajequesedeseacifraroencriptarsedivideenbloquesdenletras(sincontarespac
iosentrelaspalabras)alascualesselesasignarelvalorcorrespondientedeacuerdoalc
uadro1;concadabloqueseformarunamatrizPnx1.Ennuestrocason=2ycadabloqueformar
unamatrizde2x1.
EL_HO_MB_RE_SA_BI_OX.
EL P 1[
4
11
H O P 2[
7
15
M B P 3[
RE P 4[
S A P 5[
12
1
18
4
19
0
BI P 6[ ]
8
OX P 7[
15
24
SecalculalosproductosCPK=QK.Comoslocontamoscon27nmeros,losresultadosmayoresoigu
alesa27sedebenreduciramdulo27esdecir,dividirentre27ytomarelresiduo:
5
C P1 = [
3
][
C P2 = [
3
][
C P3 = [
3
][
C P4 = [
3
][
C P5 = [
3
][
C P6 = [
4
11
7
15
12
1
18
4
19
0
] = [
] = [
] = [
] = [
] = [
C P7 = [
3
][
87
80
63
101
102
164
95
152
29
48
15
24
] = [
] = [
131
][ ] = [
8
53
240
] = [
] = [
] = [
] = [
] = [
147
26
2
21
] = [
] = ZG
26
23
9
20
21
2
14
17
] = ZW
] = JT
] =
24
] = UC
Q$$
] = CU
12
] = MX
Eltextocifradoconelsistemahilles:ZGZWJTUCQCUMX
Ejercicio2:
DescifrarelsiguientemensajeLFBUCYPNTXYUIGSWVNRESOSVBEFteniendoencuentaqueparael
cifradoseemplela
clave:
C = 2
10
19
29
SerealizaelprocedimientodecifradousandolamatrizinversadelaClave.
buscamoslainversamultiplicandolaclaveporlamatrizidentidad.
10
19
R2 =R2 +2R1
R3 =R3 +5R1
29
1
R1 =R1 +3R2
R3 =R3 +4R1
R1 =R1 +2R3
R2 =R2 +2R3
13
11
LaMatrizInversaes:
13
= 8
11
11
LF B P1 = 5
1
21
U C Y P2 = 2
25
16
P N T P3 = 13
24
21
8
19
I GS P5 = 6
20
XY U P4 = 25
23
W V N P6 = 22
13
18
RES P7 = 4
19
15
OS V P8 = 19
22
BEF P9 = 4
SecalculalosproductosCPK=QK.Comoslocontamoscon27nmeros,losresultadosmayoresoigu
alesa27se
debenreduciramdulo27esdecir,dividirentre27ytomarelresiduo:
13
C P1 = 8
11
1
21
54
345
0
21
13
11
9
4
13
11
16
96
391
15
13
20
24
120
629
12
8
13
11
21
8
193
208
19
2 6 = 156 = 21 = S U N
13
11
19
23
67
567
13
0
2 22 = 408 = 3 = ADI
13
11
13
18
170
316
19
2 4 = 218 = 2 = S C I
13
11
9
4
13
11
19
15
89
448
8
16
22
1
143
67
13
24
24
2 4 = 54 = 0 = N AX
2 19 = 335 = 11 = P LI
2 25 = 459 = 0 = I AE
25
2 13 = 285 = 15 = N OM
2 22 = 236 = 20 = U T O
C P9 = 8
11
C P8 = 8
200
13
C P7 = 8
C P6 = 8
C P5 = 8
11
C P4 = 8
2 5 = 135 = 0 = LAA
C P3 = 8
C P2 = 8
11
Elmensajedescifradoes:LAAUTONOMIAESUNADISCIPLINA.