KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
enigma-go
★ 11
Open GitHub ↗
A Go enigma machine emulator
Download README (.md)
Explore Similar Repositories
ndcoslo2016
:
Demos for NDC Oslo 2016
open_data_science_east_2016
:
No description available.
GameOfLife
:
Conway's game of life
SupplyStudiesSyllabus
:
Collaborative syllabus for studies in supply and critical logistics.
ethabi-js
:
DEPRECATED: Merged with ethcore/parity
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
enigma-go
?
Download (.md)
# Enigma [](https://travis-ci.org/jacobtomlinson/enigma-go) An enigma machine emulator. Build using the specification at http://www.codesandciphers.org.uk/enigma/index.htm. Currently implements an M3 enigma machine using rotors I, II, III, IV and V. ## Install ```bash go get github.com/jacobtomlinson/enigma-go ``` ## Usage ```Go package main import ( "github.com/jacobtomlinson/enigma-go" "fmt" ) func main() { config := enigma.GetConfig() settings := enigma.Settings{ Rotors: []enigma.Rotor{ enigma.Rotor{ Type: "I", Ring: 0, Position: 0, }, enigma.Rotor{ Type: "II", Ring: 0, Position: 0, }, enigma.Rotor{ Type: "III", Ring: 0, Position: 0, }, }, Plugboard: [26]int{ }, Reflector: "B", Spacing: 0, } fmt.Println(enigma.ProcessString(&settings, "HELLOWORLD", &config)) // Outputs "MFNCZBBFZM" } ``` ## Contibuting ### Testing ```bash go test -v github.com/jacobtomlinson/enigma-go ```