2020. 5. 12.

[암호화] 전치기법으로 암호화 해보기 정리


8자리 숫자로 키를 만든다.

평문은 버스커버스커의 봄봄봄이다.

봄 봄 봄 봄이 왔네요
우리가 처음 만났던 곳에
거기에 나무도 여전히 남아있다

Spring spring spring spring is here Where we first met There are still trees left there.

: 68345127

암호화 하기 위한 사각형 행렬

6
8
3
4
5
1
2
7
s
p
r
i
n
g
s
p
r
i
n
g
s
p
r
i
n
g
s
p
r
i
n
g
i
s
h
e
r
e
w
h
e
r
e
w
e
f
i
r
s
t
m
e
t
t
h
e
r
e
a
r
e
s
t
i
l
l
t
r
e
e
s
l
e
f
t
t
h
e
r
e

암호문 : gpieftsee srnwihtsr rnshematt igpewerrt nsrreteeh srniesrle pighreile pigsrtelf

* 복호화 과정

암호문 : easeyanuhplowbnnmsttnvvllidiuioolmewotlsopiuteygeuohoeiotwovtheo

: 81543726

갯수의 8으로 나눠서 잘라본다.

64 개의 문자를 8개로 자르면 8 나온다

자리에 맞춰서 넣어본다.

8
1
5
4
3
7
2
6
t
e
l
l
m
e
h
o
w
a
m
i
s
u
p
p
o
s
e
d
t
o
l
i
v
e
w
i
t
h
o
u
t
y
o
u
n
o
w
t
h
a
t
i
v
e
b
e
e
n
l
o
v
i
n
y
o
u
s
o
l
o
n
g

복호화 : tell me how am i supposed to llive without you now that i've been love in you so long

댓글 없음:

댓글 쓰기