PolyCipherDecryptor
所属分类:数学计算
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-07-08 10:29:49
上 传 者:
sh-1993
说明: PolyalphabeticCipher是一种Python工具,旨在解密用多字母置换密码编码的文本,如Caesar密码。该脚本获取输入字符串,并尝试通过尝试所有可能的键移位(1到26)来解码它,并输出每个键的结果明文。
(PolyalphabeticCipher is a Python tool designed to decrypt text encoded with a polyalphabetic substitution cipher, such as the Caesar cipher. This script takes an input string and attempts to decode it by trying all possible key shifts (1 through 26) and outputs the resulting plaintext for each key.)
文件列表:
LICENSE
poly_cipher.py
# PolyalphabeticCipher
## Description
PolyalphabeticCipher is a Python tool designed to decrypt text encoded with a polyalphabetic substitution cipher, such as the Caesar cipher. This script takes an input string and attempts to decode it by trying all possible key shifts (1 through 26) and outputs the resulting plaintext for each key.
## Features
- **Uniform Processing**: Converts the input text to lowercase for uniform processing.
- **Character Mapping**: Utilizes a character mapping based on shifted alphabet positions.
- **Handling Non-Alphabetic Characters**: Leaves non-alphabetic characters unchanged.
- **Comprehensive Output**: Outputs all possible plaintexts for each key shift, allowing the user to identify the correct key and deciphered text.
## Example
### Input
Copier cette commande dans un shell
`Grfg zrffntr`
### Output
```
Key 1: fqef yqeemsq
Key 2: epde xpdellr
Key 3: docd wocdkkq
Key 4: cncb vncjjjp
Key 5: bmba umbiioo
Key 6: alab tlahhnn
Key 7: zkza skzggmm
Key 8: yjyz rjyffll
Key 9: xixy qixeekk
Key 10: whwx phdddjj
Key 11: vgvw ogcccii
Key 12: ufun nfbbbhh
Key 13: teto meaaagg
Key 14: sdsn ldzzzff
Key 15: rcsm kcyyyee
Key 16: qbrl jbxxxdd
Key 17: paqk iawwwcc
Key 18: ozpj hzvvvbb
Key 19: nooi gyuuuaa
Key 20: mnnn fxtttzz
Key 21: lmmm ewsssyy
Key 22: klll dvrrrxx
Key 23: jkkk cuqqqww
Key 24: ijjj btpppvv
Key 25: hiii asooouu
Key 26: ghhh zrnnttt
```
shell
Copier le code
## Usage
### Prerequisites
- Python 3.x
### Installation
1. Clone the repository:
```bash
git clone https://github.com/albert3661/PolyalphabeticCipher.git
Navigate to the project directory:
bash
Copier le code
`cd PolyalphabeticCipher`
Running the Script
Run the script with the encrypted text as input:
bash
Copier le code
`python polyalphabetic_cipher.py "Grfg zrffntr"`
Review the output and identify the correct plaintext.
License
This project is licensed under the MIT License. See the LICENSE file for details.
近期下载者:
相关文件:
收藏者: