urltoken

0.0.2 • Public • Published

Urltoken

Purpose

Implementation of this is only to provide developers a tool to deal with the urltoken encoded by a base64 variant from Microsoft in their .Net framework HttpServerUtility.UrlTokenEncode

for now only string is supported

Usage

encode

var urltoken = require('urltoken');
var encoded = urltoken.encode(origin_str);

decode

var urltoken = require('urltoken');
var decoded = urltoken.decode(encoded_str, 'utf8'); // the second optional argument is the encoding for decode the base64 string to human-readable text. if omitted, utf8 will be used

Readme

Keywords

none

Package Sidebar

Install

npm i urltoken

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • our1944