https://github.com/renjithspace/encrip
Tiny, Secure, Zero Dependency and Secret Key Based Encryption
https://github.com/renjithspace/encrip
Last synced: about 1 month ago
JSON representation
Tiny, Secure, Zero Dependency and Secret Key Based Encryption
- Host: GitHub
- URL: https://github.com/renjithspace/encrip
- Owner: renjithspace
- Created: 2020-11-01T09:40:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-01T11:01:15.000Z (over 4 years ago)
- Last Synced: 2025-03-25T18:45:31.587Z (about 2 months ago)
- Language: TypeScript
- Size: 14.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Encrip
Tiny, Secure, Zero Dependency and Secret Key Based Encryption### Installation
```sh
npm install encrip
```### Usage
```js
const Encrip = require('encrip')const plainText = 'Hello world'
const secretKey = 'mysecretkey'const cipher = Encrip.encrypt(plainText, secretKey) // ӽԚԡԡԤӕԬԤԧԡԙ
Encrip.decrypt(cipher, secretKey) // Hello world
```### Try online
You can find an Encrip starter project from [repl.it](https://repl.it/@RenjithV/encrip)