Skip to content

SimpleToken generates random alphanumeric, non-cryptographic string tokens.

License

Notifications You must be signed in to change notification settings

railsmechanic/simple_token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleToken

SimpleToken generates random alphanumeric, non-cryptographic string tokens.

Installation

  1. Add simple_token to your list of dependencies in mix.exs:
def deps do
  [{:simple_token, "~> 0.1.0"}]
end
  1. Fetch dependencies
mix deps.get

Usage

SimpleToken is really simple to use:

1. Generate a token with the default length of 16 characters

token = SimpleToken.generate # => token: "BKjW17nVOuwekNgP"

2. Generate a token with a custom length

token = SimpleToken.generate(24) # => token: "fCleyrpZAO9LXKtsR1xUMFPj"

License

See LICENSE.

About

SimpleToken generates random alphanumeric, non-cryptographic string tokens.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages