Skip to content

tuupola/branca-cli

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Branca CLI

Commandline tool for creating and inspecting Branca tokens.

Install

Install the binary using Yarn or npm.

$ yarn global add branca-cli
$ npm install -g branca-cli

Usage

  Command line tool for creating and inspecting Branca API tokens.

  Usage
      $ branca encode <options>
      $ branca decode <options>

  Options
      --key, -k <key>               Secret key as a string
      --payload, -p <payload>       Token payload as a string
      --timestamp, -t <timestamp>   UNIX timestamp

      --token <token>               Base62 encoded token
      --ttl <ttl>                   TTL for decoding

  Examples
      $ branca encode \
        --key 73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974 \
        --timestamp 123206400 --payload "foo"

      $ branca decode \
        --key 73757065727365637265746b6579796f7573686f756c646e6f74636f6d6d6974 \
        --token 5XhVqpMx7WD7M0GXDAnATSDRqyH8HR0OHl2iBlqetVJoPh2hRauY8cDtJxwAVfrXy

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email tuupola@appelsiini.net instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

About

Command line tool for encoding, decoding and inspecting Branca tokens

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published