GithubHelp home page GithubHelp logo

gmallard / red Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 21 KB

A rotational encryption / decryption implementation. A play toy for your enjoyment. Note: This is a toy. Do not use it in production or any serious environment.

License: Apache License 2.0

Go 100.00%

red's Introduction

Rotational (AKA shift) Encrypton / Decryption

Introduction

A rotational encryption / decryption implementation. A play toy for your enjoyment.

Note: This is a toy. Do not use it in production or any serious environment.

Motivation

This project was enspired by:

  • A general interest in cryptography.
  • History. See: Caesar Cipher
  • Reading. Example:
    • An Introduction to Mathematical Cryptography, by Jeffrey Hoffstein, Jill Pipher, and Joseph H. Silverman.
    • A PDF might be available at: Intro PDF
  • Having some fun coding.

Technical Notes

  • Written in the go language, and useful only in that environment.
  • Uses go modules. You will need a module capable version of go (go1.11+).
  • Hosted on github.

Installaton

Use git clone to obtain a copy. Not available using go get.

Your project will need to have an appropriate go.mod to use red.

Character Set

The only supported character set is UTF8. Errors are returned if an alphabet, plaintext or ciphertext parameter contains invalid characters.

Shift / Rotation Values

Shift Value 0

Supported. You get what you ask for in terms of encryption.

Shift Value a Multiple of Alphabet Length

Supported. Treated like a shift value of 0.

Shift Values Greater Than 0

All values are supported. Note that by default this is a left shift of the alphabet.

Shift Values Less Than 0

All values are supported. Note that by default this is a right shift of the alphabet.

Shift Values Left Versus Right

Default is a positive shift value uses a left shift of the alphabet.

And a negative shift value uses a right shift of the alphabet.

Default behavior can be changed by calling the constructor with an appropriate instance of NewParms.

Examples

Examples are found in the subdirectories of the cmd directory.

red's People

Contributors

gmallard avatar

Watchers

 avatar  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.