🏛️ 레일 펜스 암호란 무엇인가요?
레일 펜스 암호(지그재그 암호라고도 함)는 평문을 여러 개의 수평 "레일" 또는 행에 지그재그 패턴으로 써서 재배열하는 고전적인 전치 암호입니다. 그런 다음 각 레일을 위에서 아래로 순차적으로 읽어 암호문을 만듭니다. (also called the Zigzag Cipher) is a classical transposition cipher that rearranges the plaintext by writing it in a zigzag pattern across multiple horizontal "rails" or rows. The ciphertext is then created by reading off each rail sequentially from top to bottom.
문자를 대체하는 치환 암호(예: 시저 암호)와 달리 레일 펜스 암호는 단순히 문자의 순서를 변경하여 전치 기법으로 만듭니다. of letters, making it a transposition technique.
📖 레일 펜스 암호는 어떻게 작동하나요?
The encryption process follows these steps:
- 레일 수를 선택합니다 (이것이 키/깊이입니다) (this is your key/depth)
- 메시지를 레일 전체에 지그재그 패턴으로 씁니다 in a zigzag pattern across the rails
- 각 레일을 위에서 아래로 읽어 암호문을 만듭니다 each rail from top to bottom to create the ciphertext
Step 1: Write in zigzag pattern...
🔓 레일 펜스 암호 해독 방법
복호화하려면 사용된 레일 수를 알아야 합니다:
- 빈 자리 표시자로 지그재그 패턴을 그립니다 with empty placeholders
- 각 레일에 들어갈 문자 수를 계산합니다 go in each rail
- 암호문에서 순차적으로 레일을 채웁니다 sequentially from the ciphertext
- 지그재그 패턴을 읽어 평문을 찾습니다 to reveal the plaintext
전문가 팁: 위 도구의 "복호화" 모드를 사용하여 모든 레일 펜스 암호 메시지를 자동으로 해독하세요! Use the tool above with "Decode" mode to automatically decrypt any Rail Fence Cipher message!