1.0.4 • Published 2 years ago

@theobaidur/simple-encrypt-decrypt v1.0.4

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

Simple Encrypt Decrypt

The simplest library to encrypt & decrypt text. This is suitable for small & simple applications.

You should never use this library for serious projects.

Usage

import config, { decrypt, encrypt } from "@theobaidur/simple-encrypt-decrypt";

// configuration

config.salt = "simple_encrypt_decrypt";

// encrypt some text

const encrypted = encrypt("Hello world");

console.log(encrypted); // output:: 4c6168686b24736b766860

// decrypt the encrypted text

const text = decrypt(encrypted);

console.log(text); // output:: Hello world

Credits

Inspired from

1.0.4

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