1.0.3-2 • Published 3 years ago

strupt v1.0.3-2

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
3 years ago

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!
1.0.3-2

3 years ago

1.0.2-3

3 years ago

1.0.3-1

3 years ago

1.0.3

3 years ago

1.0.2-2

3 years ago

1.0.2-1

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago