Coder Social home page Coder Social logo

n1ghtf1re / simple-ciphers Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 4.0 325 KB

The library contains three simple ciphers: rail-fence, rotating square and wizner cipher

License: MIT License

Java 100.00%
cryptography chiper cryptography-algorithms rail-fence vigenere-cipher vigener-cipher vigener

simple-ciphers's Introduction

Simple ciphers

Stars Total Downloads Latest Stable Version License

About the library

The library contains three simple ciphers: rail-fence, rotating square and wizner cipher

Class RailFence:

Methods:

  • encode(String message, int key) - return encoded message with a cipher "Rail-Fence" with the specified key.
  • decode(String message, int key) - return decoded message with a cipher "Rail-Fence" with the specified key.

Class VigenerCipher:

Constructors:

  • VigenerCipher() - default, RUSSIAN ALPHABET
  • VigenerCipher(String aplhaber) - With the assignment the alphabet. The characters are written consecutively by a string. Example: "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"

Methods:

  • encode(String message, str keyword) - return encoded message with a Vigener cipher with the specified keyword.
  • decode(String message, str keyword) - return decoded message with a Vigener cipher with the specified keyword.

Class RotatingSquare:

Constructors:

  • RotatingSquare() - default, used default key.
  • RotatingSquare(int[][] key) - With the assignment the key, key - the array of "holes" in the square of the format [ [x,y], [x,y], ..]. Example: {{0,0}, {3,1}, {2,2}, {1,3}}

Methods:

  • encode(String message) - return encoded message with a cipher "Rotating Square".
  • decode(String message) - return decoded message with a cipher "Rotating Square".

simple-ciphers's People

Contributors

n1ghtf1re avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.