1.0.7 • Published 5 years ago

ncrypter v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago