Giter Club home page Giter Club logo

encoderr's Introduction

version GitHub license

Encoderr

Algorithms Available

Encoding

Algorith Name Alphabet Param returns Requires
Caesar a...z number string number > 0
Vigenere a...z string string string !Empty
Zigzag a...z number string number > 0
Mono Alphabet a...z alpha string alpha.length = Alphabet.length
Series a...z none object none
Row Transposition a...z string string string !Empty
Column Transposition a...z string string string !Empty

Decoding

Algorith Name Alphabet Param returns Requires
Caesar a...z number string number > 0
Vigenere a...z string string string !Empty
Zigzag a...z number string number > 0
Mono Alphabet a...z alpha string alpha.length = Alphabet.length
Series a...z none string encode First
Row Transposition a...z string string string !Empty
Column Transposition a...z string string string !Empty

Example

import { encode, decode } from "encoderr";

let params = [
  "abcdefghijklmnñopqrstuvwxyz",
  "", // MESSAGE
  "2", // PARAM ACCORDING ENCODING/DECODING
];

const example = {
  encoding: ([alpha, text, moves]) => {
    moves = Number.parseInt(moves);
    if (!moves || moves < 1) return "Number Required";
    return encode.caesarEncode(alpha, text, moves);
  },
  decoding: ([alpha, text, moves]) => {
    moves = Number.parseInt(moves);
    if (!moves || moves < 1) return "Number Required";
    return encode.caesarEncode(alpha, text, moves);
  },
};

params[1] = "hello world";
console.log("message => ", params[1]);

params[1] = example.encoding(params);
console.log("encoded => ", params[1]);

params[1] = example.decoding(params);
console.log("decoded => ", params[1]);

Built With

javascript love

Authors

MelissaSanchez20 cartory GaboAP Erick328

See also the list of contributors who participated in this project.

encoderr's People

Contributors

cartory avatar erick328 avatar gaboap avatar melissasanchez20 avatar

Watchers

James Cloos 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.