Mind map
Entrada: "a". Chave: "abcdefgh".
Map content
Entrada: "a". Chave: "abcdefgh".
KSA faz permutação no array S com base na chave.
- Em PRGA, i = (i + 1) % 256; logo, i = 1
- Se, j = (j + S[i]) % 256. j = S[1] % 256. Logo, j = 115
- Inverte-se as posições de S[1] e S[115]
- No fim, (S[(196 + 115]) % 256] ^ 97). S[311] ^ 97. 81 ^ 97 resultará em 48
- Em ASCII, a = 97 e 0 = 48
- Logo, a mensagem cifrada será: 0.
- No fim, (S[(196 + 115]) % 256] ^ 97). S[311] ^ 97. 81 ^ 97 resultará em 48
- S[1] = 196 S[115] = 115
- Inverte-se as posições de S[1] e S[115]
- Se, j = (j + S[i]) % 256. j = S[1] % 256. Logo, j = 115
- Em PRGA, i = (i + 1) % 256; logo, i = 1
Information
- Description
- Mind Map on Entrada: "a". Chave: "abcdefgh"., created by Carol Portes on 22/09/2015.
- Created by
- Carol Portes
- Views
- 2
- Rating