Giter Site home page Giter Site logo

gocipher's Introduction

gocipher

gocipher is a collection of classical ciphers and cryptanalysis tools. gocipher is not cryptographically secure. Algorithms do not use constant-time operations and are thus susceptible to timing attacks.

Classical ciphers

Mechanical ciphers

Binary-to-text encoding

Bases

  • Base 2 <-> Base 10 | dCode
  • Base 26 <-> Base 10 | dCode

Barcodes

Symmetric key encryption

Public key

Hash functions

Graphical

Algoriothms

  • Benford's Law | dCode
  • Frequency Analysis | dCode | Rumkin.com
  • Index of Coincidence | dCode
  • Middle squares method for pseurorandom number generation

Utilities

Lists

Libraries

gocipher's People

Contributors

thaliaarchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ezequiasazanes

gocipher's Issues

Ngram text files not properly referenced when used as a library

After installing gocipher (via "go get" and "go build"), for it to work, a symlink needs to be created from the ngrams/ dir to the place where the gocipher library is used. This needs to be fixed to not rely on a symlink for portability.

$ go run affinetest.go
panic: error opening file "ngrams/english_1-grams.txt": open ngrams/english_1-grams.txt: no such file or directory

goroutine 1 [running]:
github.com/andrewarchi/gocipher/gocipher.LoadNgrams(0x10de633, 0x7, 0x1, 0x54)
	/Users/kbouley/projects/go/src/github.com/andrewarchi/gocipher/gocipher/ngrams.go:66 +0x9e8
github.com/andrewarchi/gocipher/gocipher.init()
	/Users/kbouley/projects/go/src/github.com/andrewarchi/gocipher/gocipher/ngrams.go:12 +0x425
main.init()
	<autogenerated>:1 +0x50
exit status 2

I was kindly notified of this issue by Kris Boulez.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.