tflori/secure-token

Library to generate tokens of arbitrary precision

v1.0.2 2018-11-17 16:32 UTC

This package is auto-updated.

Last update: 2024-12-18 07:36:49 UTC


README

Build Status Coverage Status Latest Stable Version Total Downloads License

A helper library to generate tokens.

Usage

<?php

// generate base 36 encoded 160 bit token 
$token160 = SecureToken\Token::generate(160, 36);

// default: base 62 encoded 256 bit token
$token256 = SecureToken\Token::generate();