PHPackages                             ndinhbang/laravel-crypto - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. ndinhbang/laravel-crypto

ActiveLibrary[Security](/categories/security)

ndinhbang/laravel-crypto
========================

Platform-Agnostic Security Tokens

1.0.0(1y ago)0141ISCPHPPHP ^8.2

Since Jun 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ndinhbang/laravel-crypto)[ Packagist](https://packagist.org/packages/ndinhbang/laravel-crypto)[ RSS](/packages/ndinhbang-laravel-crypto/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

PASETO: Platform-Agnostic Security Tokens
=========================================

[](#paseto-platform-agnostic-security-tokens)

[![Build Status](https://github.com/ndinhbang/laravel-crypto/actions/workflows/ci.yml/badge.svg)](https://github.com/ndinhbang/laravel-crypto/actions)[![Latest Stable Version](https://camo.githubusercontent.com/1aa341fabb2ce5af32deedb894b7fbe5e772fc3a4b924837d61ceedadd45ed9f/68747470733a2f2f706f7365722e707567782e6f72672f6e64696e6862616e672f6c61726176656c2d63727970746f2f762f737461626c65)](https://packagist.org/packages/ndinhbang/laravel-crypto)[![Latest Unstable Version](https://camo.githubusercontent.com/c44b14afc52bd8486383d5c977c5a509d3019ef313451712ab1d5499ae0170ae/68747470733a2f2f706f7365722e707567782e6f72672f6e64696e6862616e672f6c61726176656c2d63727970746f2f762f756e737461626c65)](https://packagist.org/packages/ndinhbang/laravel-crypto)[![License](https://camo.githubusercontent.com/1af6e0b7d3ff25fb96aba400e8f4ef3b6e69d3896c87aadf9690fc83e99885ea/68747470733a2f2f706f7365722e707567782e6f72672f6e64696e6862616e672f6c61726176656c2d63727970746f2f6c6963656e7365)](https://packagist.org/packages/ndinhbang/laravel-crypto)[![Downloads](https://camo.githubusercontent.com/a325840be3e69a85101a82a064039e4aad447cd4b8ac24299aaf8b0f789e541e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e64696e6862616e672f6c61726176656c2d63727970746f2e737667)](https://packagist.org/packages/ndinhbang/laravel-crypto)

Paseto (pɔːsɛtəʊ, paw-set-oh) is everything you love about JOSE (JWT, JWE, JWS) without any of the [many design deficits that plague the JOSE standards](https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-bad-standard-that-everyone-should-avoid).

This library is a reference implementation of PASETO in the PHP language. Please refer to the [**PASETO Specification**](https://github.com/paseto-standard/paseto-spec)for design considerations.

How to Use this Library
-----------------------

[](#how-to-use-this-library)

See [the documentation](https://github.com/ndinhbang/laravel-crypto/tree/master/docs).

The [PASETO specification](https://github.com/paseto-standard/paseto-spec) may also be useful for understanding why things are designed the way they are.

### PASETO Extensions

[](#paseto-extensions)

#### PASERK

[](#paserk)

For key wrapping, serialization, and canonical identification, please see the [PHP implementation of PASERK](https://github.com/paragonie/paserk-php).

If you're not sure what that means, please refer to the [PASERK specification](https://github.com/paseto-standard/paserk).

Since PASERK is a PASETO extension, PASERK support is not automatically included with PASETO, but PASETO is bundled with PASERK.

### Requirements

[](#requirements)

#### PHP PASETO Library Version 3

[](#php-paseto-library-version-3)

- Requires PHP 8.1 or newer.
- For v3 tokens, the GMP and OpenSSL extensions are required.
- For v4 tokens, the Sodium extension is strongly recommended (but this library will use [sodium\_compat](https://github.com/paragonie/sodium_compat) if it's not).
- PASETO Protocol versions: `v3`, `v4`

#### PHP PASETO Library Version 2

[](#php-paseto-library-version-2)

- Requires PHP 7.1 or newer.
- For v3 tokens, the GMP and OpenSSL extensions are required.
- For v4 tokens, the Sodium extension is strongly recommended (but this library will use [sodium\_compat](https://github.com/paragonie/sodium_compat) if it's not).
- PASETO Protocol versions: `v1`, `v2`, `v3`, `v4`

#### PHP PASETO Library Version 1

[](#php-paseto-library-version-1)

- Requires PHP 7.0 or newer.
- For v1 tokens, the OpenSSL extension is required.
- For v2 tokens, the Sodium extension is strongly recommended (but this library will use [sodium\_compat](https://github.com/paragonie/sodium_compat) if it's not).
- PASETO Protocol versions: `v1`, `v2`

Support Contracts
-----------------

[](#support-contracts)

If your company uses this library in their products or services, you may be interested in [purchasing a support contract from Paragon Initiative Enterprises](https://paragonie.com/enterprise).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

711d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02b45621349fe6f28d5a4213f1ff1e73baaf2eeef6b249defe73ff437003dd6d?d=identicon)[ndinhbang](/maintainers/ndinhbang)

---

Top Contributors

[![bang-abilive](https://avatars.githubusercontent.com/u/267970447?v=4)](https://github.com/bang-abilive "bang-abilive (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ndinhbang-laravel-crypto/health.svg)

```
[![Health](https://phpackages.com/badges/ndinhbang-laravel-crypto/health.svg)](https://phpackages.com/packages/ndinhbang-laravel-crypto)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[paragonie/paseto

Platform-Agnostic Security Tokens

3.4k1.3M18](/packages/paragonie-paseto)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
