encrip

Tiny, Secure, Zero Dependency and Secret Key Based Encryption

Usage no npm install needed!

<script type="module">
  import encrip from 'https://cdn.skypack.dev/encrip';
</script>

README

Encrip

Tiny, Secure, Zero Dependency and Secret Key Based Encryption

Installation

npm install encrip

Usage

import Encrip from 'encrip'

const plainText = 'Hello world'
const secretKey = 'mysecretkey'

const cipher = Encrip.encrypt(plainText, secretKey) // ӽԚԡԡԤӕԬԤԧԡԙ
Encrip.decrypt(cipher, secretKey) // Hello world