1.2.1 • Published 2 years ago

td-scramble v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

td-scramble NPM version

An overly simple and underwhelmingly secure encryption library for experimental/learning purposes.

The assumption is that translating the literal letters of the original english spelling will exponetially scramble the original contents of the message once in it's foreign counter part.

In the example below we use the hebrew signing key.

  • Given the input: "can you UnCOVER THE SECret"
  • output as literal translation (complete garbage): "Khan iv and khwahr tha shahkhreht"

Though incredibly easy to uncover once you know the key, for my use case of scrambling words that a user is trying to guess in a game of hangman or wordle, it will do just fine.

Usage

import { encrypt, decrypt } from "td-scramble";

const message = "can you UnCOVER THE SECret";
const signingKey = "hebrew";

const encryptedMessage = encrypt(message, signingKey);
console.log(encryptedMessage); // => כאנ יוו ונכווהר טהה שהכרהט

const decryptedMessage = decrypt(encryptedMessage, signingKey);
console.log(decryptedMessage); // => some amazingly non-secret secret

supported signing keys include: 'arabic', 'hebrew', 'russian', 'tibetan'

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago