Skip to content

rfrench/nodejs-ectoken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-ectoken

node.js implementation of Edgio token (ectoken)

Table of Contents

Background

node.js implementation of the "Edgio Token" (ectoken) -see main repo ectoken for more details.

Install

npm install ectoken

Usage

  • encrypt(key, params, verbose)
  • decrypt(key, token, verbose)

Example

const ectoken = require('ectoken').V3;

// encrypt
const token = ectoken.encrypt('keyvalue', 'ec_expire=1257642471&ec_clientip=11.22.33.1');

// decrypt
const params = ectoken.decrypt('keyvalue', token);

Contribute

We welcome issues, questions and pull requests.

License

This project is licensed under the terms of the Apache 2.0 open source license. Please refer to the LICENSE file for the full terms.

About

Token Generator for Edgio Token-Based Authentication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published