PHPackages                             sop/pkcs8 - 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. sop/pkcs8

ActiveLibrary[Security](/categories/security)

sop/pkcs8
=========

A PHP implementation of PKCS #8 encrypted private-key.

0.3.0(7y ago)51891MITPHPPHP &gt;=7.2

Since Jul 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sop/pkcs8)[ Packagist](https://packagist.org/packages/sop/pkcs8)[ Docs](https://github.com/sop/pkcs8)[ RSS](/packages/sop-pkcs8/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

PKCS #8
=======

[](#pkcs-8)

[![Build Status](https://camo.githubusercontent.com/83de2be0c80fcf4fd178f7964946e478f4b60b886ee78f15688a7932bd10a352/68747470733a2f2f7472617669732d63692e6f72672f736f702f706b6373382e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sop/pkcs8)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/240c65fa76f30f45c0361204f68e2ec20964080756fc230e7edc073fb2941391/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f702f706b6373382f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sop/pkcs8/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/dbde5dae9ce1b0e1b593045258673d3f68bbb4d092f1b6ba8d3773e100907caa/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f736f702f706b6373382f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/sop/pkcs8?branch=master)[![License](https://camo.githubusercontent.com/0c39787dff487907dfa94e4e26436eed5ea3bfa8d19aa9e8b99f0d701a47485c/68747470733a2f2f706f7365722e707567782e6f72672f736f702f706b6373382f6c6963656e7365)](https://github.com/sop/pkcs8/blob/master/LICENSE)

A PHP implementation of [PKCS #8](https://tools.ietf.org/html/rfc5208)encrypted private-key.

Requirements
------------

[](#requirements)

- PHP &gt;=7.2
- [sop/asn1](https://github.com/sop/asn1)
- [sop/crypto-encoding](https://github.com/sop/crypto-encoding)
- [sop/crypto-types](https://github.com/sop/crypto-types)
- [sop/crypto-bridge](https://github.com/sop/crypto-bridge)
- [sop/pkcs5](https://github.com/sop/pkcs5)

Installation
------------

[](#installation)

This library is available on [Packagist](https://packagist.org/packages/sop/pkcs8).

```
composer require sop/pkcs8

```

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

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

Every ~226 days

Total

4

Last Release

2595d ago

PHP version history (3 changes)0.1.0PHP &gt;=5.6.3

0.2.0PHP &gt;=7.0

0.3.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1017000?v=4)[Joni Kollani](/maintainers/sop)[@sop](https://github.com/sop)

---

Top Contributors

[![sop](https://avatars.githubusercontent.com/u/1017000?v=4)](https://github.com/sop "sop (16 commits)")

---

Tags

encryptencrypted-private-keypkcspkcs8private-keyencryptPrivate Keypkcs8

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sop-pkcs8/health.svg)

```
[![Health](https://phpackages.com/badges/sop-pkcs8/health.svg)](https://phpackages.com/packages/sop-pkcs8)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k170.7M239](/packages/defuse-php-encryption)[paragonie/ciphersweet

Searchable field-level encryption library for relational databases

4671.3M23](/packages/paragonie-ciphersweet)[sbamtr/laravel-source-encrypter

Laravel Source Encrypter

58747.8k](/packages/sbamtr-laravel-source-encrypter)[nzo/url-encryptor-bundle

The NzoUrlEncryptorBundle is a Symfony Bundle used to Encrypt and Decrypt data and variables in the Web application or passed through URL

951.1M2](/packages/nzo-url-encryptor-bundle)[daanra/laravel-lets-encrypt

A Laravel package to easily generate SSL certificates using Let's Encrypt

22654.7k](/packages/daanra-laravel-lets-encrypt)[vlucas/pikirasa

PKI public/private RSA key encryption using the OpenSSL extension

104104.1k1](/packages/vlucas-pikirasa)

PHPackages © 2026

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