strupt
TypeScript icon, indicating that this package has built-in type declarations

1.0.3-2 • Public • Published

strupt

A string "encryptor".

Example usage

// Import encrypt and decrypt
import { encrypt, decrypt } from "strupt";

// Define our string to encrypt
const toEncrypt = "Hello World!";

// Encrypt it with emojis and words enabled
const encrypted = encrypt(toEncrypt, { emojis: true, words: true });

// Decrypt the encrypted string using the encrypted string and the encryption key
const decrypted = decrypt(encrypted.string, encrypted.key);

// Log the outputs!
console.log(`ORIGINAL:\n${toEncrypt}\n`)
console.log(`ENCRYPTED:\n${encrypted.string}\n`);
console.log(`DECRYPTED:\n${decrypted}\n`);

Example output

ORIGINAL:
Hello World!

ENCRYPTED:
lundividedlyticklersl🚤ofarmeredisburthenwreekrglairinesseslteratismshbellydsalmon!recalescencesoscalene

DECRYPTED:
Hello World!

Readme

Keywords

none

Package Sidebar

Install

npm i strupt

Weekly Downloads

2

Version

1.0.3-2

License

BSD-3-Clause

Unpacked Size

75.3 kB

Total Files

11

Last publish

Collaborators

  • beefers