Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rfrench/nodejs-ectoken
Token Generator for Edgio Token-Based Authentication
https://github.com/rfrench/nodejs-ectoken
authentication ectoken edgecast edgio node node-js nodejs token
Last synced: 23 days ago
JSON representation
Token Generator for Edgio Token-Based Authentication
- Host: GitHub
- URL: https://github.com/rfrench/nodejs-ectoken
- Owner: rfrench
- License: apache-2.0
- Created: 2018-04-12T04:02:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T18:59:10.000Z (over 2 years ago)
- Last Synced: 2023-03-13T14:12:37.388Z (almost 2 years ago)
- Topics: authentication, ectoken, edgecast, edgio, node, node-js, nodejs, token
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nodejs-ectoken
> _node.js implementation of Edgio token (`ectoken`)_## Table of Contents
- [Background](#background)
- [Install](#install)
- [Usage](#usage)
- [Example](#example)
- [Contribute](#contribute)
- [License](#license)## Background
node.js implementation of the "Edgio Token" (`ectoken`) -see main repo [ectoken](https://github.com/edgioinc/ectoken) for more details.
# Install
```
npm install ectoken
```## Usage
* **encrypt**(key, params, verbose)
* **decrypt**(key, token, verbose)## Example
```javascript
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.