1.0.7 • Published 3 years ago

ncrypter v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

ncrypter

A simple package to encrypt/decrypt secret keys across different platforms based on time elapsed

Installation

npm install ncrypter

Usage

var ncrypter = require('ncrypter');

//use encode on your frontend with number of second you want it to change and the secret key
var encodedString = ncrypter.encrypt(2, 'mysecret1')

//use decode on your backend with same number of second and the same secret
var decodedString = ncrypter.decrypt(encodedString, 2, 'mysecret1');

console.log('permission granted -->', decodedString);
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago