2017 © Pedro Peláez
 

library fixed-token

Generates and verifies tokens based on a secret and some public data

image

gisostallenberg/fixed-token

Generates and verifies tokens based on a secret and some public data

  • Friday, January 27, 2017
  • by gisostallenberg
  • Repository
  • 1 Watchers
  • 0 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FixedToken

Generate and verify tokens based on a secret and some public data, (*1)

Installation

composer require gisostallenberg/fixed-token

Usage example

<?php

use GisoStallenberg\FixedToken\FixedToken;

$secret = 'oxQu/H2FZLOK2elkfle8bg./eg';
$data = array(
    'username' => 'giso',
);

$token = FixedToken::create($secret)
    ->addData($data)
    ->generate();

FixedToken::create($secret)
    ->addData($data)
    ->verify($token); // should return true

The Versions

27/01 2017

dev-master

9999999-dev

Generates and verifies tokens based on a secret and some public data

  Sources   Download

The Development Requires

by Giso Stallenberg

27/01 2017

1.0.0

1.0.0.0

Generates and verifies tokens based on a secret and some public data

  Sources   Download

The Development Requires

by Giso Stallenberg