Skip to content

Latest commit

 

History

History
22 lines (21 loc) · 835 Bytes

README.md

File metadata and controls

22 lines (21 loc) · 835 Bytes

Token Generator

TokenGen is intended to assure data integrity and authenticity shared between parties. This package is inspired by django-contrib-auth-token so that each token generated will have its timeout. Used techniques are symmetric and hashing so that you must have a secret key shared among partners to succeed on using this module.

Use cases

  • Digital signatures
  • OTP (one time password)
  • Forget password token with timeout

Installation

Use go get

go get -u github.com/hyuti/tokengen

Then import the package into your own code

import "github.com/hyuti/tokengen"

Examples

See examples for further details

Author

Hyuti Le