1.0.3 • Published 8 months ago

cryptohub v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

CryptoHub

Goodbye to UUID: Introducing cryptothub — Your Ultimate Crypto-Based Identifier Generator

CryptoHub is a JavaScript library that provides functionality for generating crypto IDs and encrypting/decrypting and Hashing data using ASCII encoding algorithm

Package.json

 "main": "index.js",
 "type": "module",// set your moduler type ES or CJS

Installation

npm i cryptohub

Usage

node

import {cryptyoId} from `cryptohub`// Genrate a crypto Id
import {encryptdata} from `cryptohub`// Encrypt data using ASCII encoding algorithm
import {decryptdata} from `cryptohub`// Decrypt data what encrypted

Create a Crypto ID

const myId = cryptyoId(); //2K0w270o2t5C7e9Q3

`or you can define a length`;

const myId = cryptyoId(6); //define your length

Encrypt & Decrypt data

const myEncryptedData = encryptdata("token", "secretKey");
//0000006c000000610000006b0000006d000000610000006c

`also you can decrypt your encrypted data`;

const myDecryptedData = decryptdata(myEncryptedData); //token

Hash Your data

const myHashedData = hashdata("data"); //2b1f#@f#de@e#@d

Contribute

If you would like to contribute, you are welcome

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago