GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - EsakaK/Enigma-Machine: An Enigma cipher machine (German: Enigma, also known as an Enigma cipher machine, dummy cipher machine, odd cipher machine or enigma cipher machine) is a type of cipher machine used to encrypt and decrypt files. To be precise, Enigma is a collective name for a series of similar rotor-mechanical encryption and decryption machines used in Nazi Germany during World War II, which included a number of different models for stream encryption of cryptographic symmetric encryption algorithms.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
parts
parts
 
 
text
text
 
 
README.md
README.md
 
 
run.py
run.py
 
 

Repository files navigation

恩格玛(Enigma)加密解密一体机

恩尼格玛密码机(德语:Enigma,又译恩尼格密码机、哑谜机、奇谜机或谜式密码机)是一种用于加密与解密文件的密码机。确切地说,恩尼格玛是对二战时期纳粹德国使用的一系列相似的转子机械加解密机器的统称,它包括了许多不同的型号,为密码学对称加密算法的流加密。

恩格玛机的破解是一个艰辛且漫长的过程,涌现了无数仁人志士,许多为破解恩格玛机贡献巨大的科学家却因为战争、世俗而流离失所,抑郁终身,其中就包括计算机祖师爷——阿兰·图灵。

本仓库力图实现最基本的加密解密过程(不包括插线板)

Usage

编码

python run.py --key ABC --file_path ./text/demo.txt

解码

python run.py --key ABC --file_path ./text/res.txt --save_path ./text/decoded.txt --encoding 0
  • key:是三转子恩格玛机的加密/解密秘钥,由交流者制定和共享
  • file_path:应该是一个纯文本文件的路径
  • save_path:解码后的文件保存的路径(默认为/text/res.txt)
  • encoding: 编码/解码,1为编码,0为解码(默认为1)

由于恩格玛机的“自反性”,不需要对明文和暗文进行区分,恩格玛机只会完成它该做的。

DEMO

演示demo: enigma

Link

【计算机博物志】战争密码(上集)如何复刻一台恩格玛机

About

An Enigma cipher machine (German: Enigma, also known as an Enigma cipher machine, dummy cipher machine, odd cipher machine or enigma cipher machine) is a type of cipher machine used to encrypt and decrypt files. To be precise, Enigma is a collective name for a series of similar rotor-mechanical encryption and decryption machines used in Nazi Germa…

Resources

Readme
Activity

Stars

5 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.