npm

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

0.1.4 • Public • Published

cryptosmith

cryptosmith is a lightweight encryption package for running servers efficiently.

Installation

You can install cryptosmith via npm:

npm install cryptosmith

Usage

import Smith from 'cryptosmith';



const algorithm = 'aes-256-cbc';
const secret = 'your-secret-password';
const smith = new Smith(secret, algorithm); 

const word = "Hello World !";

const lock = smith.lock(word);

const unlock = smith.unlock(lock);

Contributing Contributions are welcome! If you find any issues or would like to contribute to cryptosmith, please feel free to open an issue or submit a pull request on the GitHub repository.

License This project is licensed under the MIT License - see the LICENSE file for details.

Readme

Keywords

none

Package Sidebar

Install

npm i cryptosmith

Weekly Downloads

1

Version

0.1.4

License

ISC

Unpacked Size

5.31 kB

Total Files

12

Last publish

Collaborators

  • akhilchoudhary