PHPackages                             paragonie/paserk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. paragonie/paserk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

paragonie/paserk
================

PHP implementation of PASERK (Platform Agnostic SERialized Keys), a PASETO extension.

v2.3.2(10mo ago)16228.9k↓36.7%11ISCPHPPHP ^8.1CI passing

Since Sep 15Pushed 10mo ago6 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (19)Used By (1)

PASERK (PHP)
============

[](#paserk-php)

[![Build Status](https://github.com/paragonie/paserk-php/actions/workflows/ci.yml/badge.svg)](https://github.com/paragonie/paserk-php/actions)[![Latest Stable Version](https://camo.githubusercontent.com/d00f110fde788ec9e9a9e623c330b9b91c2130ff259f40e89d67cf8eadc7113c/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f70617365726b2f762f737461626c65)](https://packagist.org/packages/paragonie/paserk)[![Latest Unstable Version](https://camo.githubusercontent.com/de0ec8653e90674d2ca2fb14f791cde27ae73c12b5ce6b2d9ebc768e2816e20e/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f70617365726b2f762f756e737461626c65)](https://packagist.org/packages/paragonie/paserk)[![License](https://camo.githubusercontent.com/3584a56f53b7b11d23f69c0dee163e2073af5c419eeb95932c823a248a742a2d/68747470733a2f2f706f7365722e707567782e6f72672f70617261676f6e69652f70617365726b2f6c6963656e7365)](https://packagist.org/packages/paragonie/paserk)[![Downloads](https://camo.githubusercontent.com/5bb88033436f63c7fd5451fb34d179723ced083d25f85909f04cd4e73d33c245/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617261676f6e69652f70617365726b2e737667)](https://packagist.org/packages/paragonie/paserk)

Platform Agnostic SERialized Keys. **Requires PHP 7.1 or newer.**

PASERK Specification
--------------------

[](#paserk-specification)

The PASERK Specification can be found [in this repository](https://github.com/paseto-standard/paserk).

Installing
----------

[](#installing)

```
composer require paragonie/paserk

```

### PASERK Library Versions

[](#paserk-library-versions)

- PASERK PHP Version 2
    - Requires PHP 8.1+
    - PASETO versions: `v3`, `v4`
        - This means only the corresponding `k3` and `k4` modes are implemented.
- [PASERK PHP Version 1](https://github.com/paragonie/paserk-php/tree/v1.x)
    - Requires PHP 7.1+
    - PASETO versions: `v1`, `v2`, `v3`, `v4`
        - This provides a stable reference implementation for the PASERK specification.

Documentation
-------------

[](#documentation)

See [this directory](docs) for the documentation.

Example: Public-key Encryption
------------------------------

[](#example-public-key-encryption)

### Wrapping

[](#wrapping)

```
