A library with different methods to encode and decode data.

Overview

encryption_lib for Deno

A library with different methods to encode and decode data.

Usage Example:

Caesar Cipher

import { Caesar } from "https://deno.land/x/[email protected]/mod.ts"

const caesar_enc_text = "Hello World!"
const cipher = 5

//Caesar.CaesarEncoding
const caesar_encoded = Caesar.CaesarEncoding(caesar_enc_text,cipher)
console.log(caesar_encoded) // "Mjqqt Btwqi!"

const caesar_dec_text = "Mjqqt Btwqi!"

//Caesar.CaesarDecoding
const caesar_decoded = Caesar.CaesarDecoding(caesar_dec_text,cipher)
console.log(caesar_decoded) // "Hello World!"

RSA

import { RSA } from "https://deno.land/x/[email protected]/mod.ts"

// RSA.KeyGenrerator (generates a random public and private keypair)
const rsa_keys = RSA.KeyGenerator()
console.log(rsa_keys) // [[3,1219],[763,1219]]

const rsa_enc_text = "Hello World"
const rsa_public_key = [3,1219]

// RSA.Encoding
const rsa_encoded = RSA.Encoding(rsa_enc_text,rsa_public_key)
console.log(rsa_encoded) // [234,246,485,485,1132,1074,243,1132,459,485,420]

const rsa_dec_list = [234,246,485,485,1132,1074,243,1132,459,485,420]
const rsa_private_key = [763,1219]

//RSA.Decoding
const rsa_decoded = RSA.Decoding(rsa_dec_list,rsa_private_key)
console.log(rsa_decoded) // "Hello World"
You might also like...

Boiler is a utility library that makes every day tasks in JavaScript easier by providing over 115 methods

Boiler is a utility library that makes every day tasks in JavaScript easier by providing over 115 methods that work on arrays, collections, functions, numbers, objects, and strings. It's the JavaScript equivalent of a Swiss Army Knife.

Nov 1, 2022

Provides simple and the most useful methods to string operations in JavaScript / Node.js

๐Ÿ”ช Strops (String Operations) Provides simple methods for the most useful operations with substrings: - remove, replace, get from A to B, get from A t

May 20, 2022

In this project, I implement a Simple To Do List with the CRUD (create, read, update, delete) methods. I followed the JavaScript, CSS, HTML, DRY, KISS and YAGNI Best practices.

In this project, I implement a Simple To Do List with the CRUD (create, read, update, delete) methods. I followed the JavaScript, CSS, HTML, DRY, KISS and YAGNI Best practices.

To Do list: add & remove In this project, I implement a Simple To Do List with the CRUD (create, read, update, delete) methods. All the elements of th

Nov 20, 2022

Leader Board is a simple project based on JavaScript programing language. The purpose of this project is to work with APIs and ASYNC & AWAIT methods. I have used vanilla JavaScript with web pack to implement this project

Leader Board is a simple project based on JavaScript programing language. The purpose of this project is to work with APIs and ASYNC & AWAIT methods. I have used vanilla JavaScript with web pack to implement this project

Leader Board - JavaScript Project Table of contents Overview The challenge Screenshot Links Project Setup commands My process Built with What I learne

Oct 21, 2022

A collection of functions and methods to make it easier for you to create applications.

def-helper A collection of functions and methods to make it easier for you to create applications. Install npm install --save def-helper Usage import

Oct 13, 2022

A simple in-memory key-value cache for function execution, allowing both sync and async operations using the same methods

A simple in-memory key-value cache for function execution, allowing both sync and async operations using the same methods. It provides an invalidation mechanism based both on exact string and regex.

Dec 15, 2022

Complete JavaScipt Array methods Cheatsheet ๐Ÿš€

Complete JavaScipt Array methods Cheatsheet ๐Ÿš€

Javascript Array Cheatsheet ๐Ÿ‘พ Click to download โ˜ Important ๐Ÿšจ There is no way this is perfect or include all the methods. I'll try to fix/add more m

Dec 7, 2022

The invoker based on event model provides an elegant way to call your methods in another container via promisify functions

The invoker based on event model provides an elegant way to call your methods in another container via promisify functions. (like child-processes, iframe, web worker etc).

Dec 29, 2022

ZxCDDoS for education with LAYER 7, LAYER 4, AMP METHODS

ZxCDDoS for education with LAYER 7, LAYER 4, AMP METHODS

๐Ÿš€ ZxCDDoS: Release v1.0 - Free DDoS Panel ๐Ÿš€ Terminal only accepts ANSI color. Username: admin Password: admin Language Logs Fixed L7 methods (crash,

Jan 3, 2023
Releases(0.1.4)
Owner
null
The culmination of Encode Academy, the 8-week long Solidity course by Encode Club in collaboration with Extropy

Encode Academy | DAO: Real Estate & Renting What is this? This is the culmination of Encode Academy, the 8-week long Solidity course by Encode Club in

Oliver H. D. 5 May 25, 2022
Encode/Decode Bot Protections Payload

decode.antibot.to Open source tools to help you decode/encode sensor data. Features Browser decoding/encoding API decoding/encoding Usage PerimeterX E

null 15 Dec 25, 2022
Encode WEB-Dev is a open source project which contains different projects of Html, CSS, Javascript and MERN Stack etc.

HACKTOBERFEST 2022 Encode WEB-Dev is an open source project which contains different projects of Html, CSS, Javascript and MERN Stack etc. which makes

null 7 Oct 31, 2022
An interceptor to validate and decode Pub/Sub push messages for endpoints

NestJS GCP Pub/Sub Interceptor Provides an Interceptor for NestJS to automagically validate and unwrap HTTP push messages from Google Cloud Platform's

Hiphops 3 Dec 15, 2022
Create, sign & decode Solana transactions with minimum deps

micro-sol-signer Create, sign & decode Solana transactions with minimum deps. Tiny: 674 LOC, 3K LOC with all deps bundled No network code in main pack

Paul Miller 32 Nov 23, 2022
Create, sign & decode BTC transactions with minimum deps.

micro-btc-signer Create, sign & decode BTC transactions with minimum deps. ?? Small: ~2.2K lines Create transactions, inputs, outputs, sign them No ne

Paul Miller 19 Dec 30, 2022
This branch is created to make receive and send data to api using async and await methods

Microverse-Leader-Board Project from module 2 week 4 This branch is created to make receive and send data to api using async and await methods Screens

Akshitha Reddy 6 Apr 22, 2022
Elections in Russia, Saint Petersburg, 2021: results, turnout, and commission data. With image charts and brief introduction to election fraud methods used.

2021 Elections in Saint Petersburg, Russia ???? ะŸะตั€ะตะบะปัŽั‡ะธั‚ัŒัั ะฝะฐ ั€ัƒััะบะธะน ?? Jump to charts ?? Telegram bot In Russia, Saint Petersburg from 17th to 19

Vyacheslav 11 Dec 26, 2022
This repository contains different infrastructure components that are used in different projects here at NaN Labs.

Infrastructure Reference Changelog | Contributing This repository contains different infrastructure components that are used in different projects her

NaN Labs 10 Dec 15, 2022
EasyMod.js, a library that adds multiply methods into JS!

EasyMod.js EasyMod.js by BonesYT, a library that adds multiple methods into JS! This adds a lot of methods to: strings, numbers, booleans, bigint, fun

null 3 May 16, 2022