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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    1

Package Sidebar

Install

npm i urltoken

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • our1944