Skip to content

A replacement of django-contrib-auth-token package in golang

License

Notifications You must be signed in to change notification settings

hyuti/token-gen

Repository files navigation

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

About

A replacement of django-contrib-auth-token package in golang

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages