PHPackages                             jezzdk/statamic-secret - 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. jezzdk/statamic-secret

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

jezzdk/statamic-secret
======================

v1.1(4y ago)1291[1 issues](https://github.com/jezzdk/statamic-secret/issues)[1 PRs](https://github.com/jezzdk/statamic-secret/pulls)PHP

Since Jan 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jezzdk/statamic-secret)[ Packagist](https://packagist.org/packages/jezzdk/statamic-secret)[ RSS](/packages/jezzdk-statamic-secret/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Statamic Secret
===============

[](#statamic-secret)

> With this addon you can store text that will be encrypted using generated RSA keys. The text will be decrypted in the control panel and when augmented, but no one will have a clue what the value is just by looking at the content files.

Features
--------

[](#features)

This addon:

- Adds a fieldtype that enables the user to store encrypted single- or multiline text
- Provides a command for generating RSA keys
- Provides a way to store the RSA keys in any disk that has been configured in `config/filesystem.php` (Pro only)

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require jezzdk/statamic-secret
```

You can set some .env variables to change options (the values below are the defaults):

```
// The RSA key length in bytes
STATAMIC_SECRET_KEY_LENGTH=4096

// The path and filename for the public key
STATAMIC_SECRET_KEY_PUBLIC=statamic_secret.pub

// The path and filename for the private key
STATAMIC_SECRET_KEY_PRIVATE=statamic_secret

// The filesystem disk to use as storage (Pro only)
STATAMIC_SECRET_DISK=local

```

You can publish the config file with:

```
php artisan vendor:publish --tag=statamic-secret-config

```

How to Use
----------

[](#how-to-use)

After installing the addon, you can generate the keys with the command below. You can use the same command to re-generate them for any reason:

```
php please secret:generate

```

You will be prompted to overwrite the keys if files with the configured names already exist.

> You should NOT commit the keys to version control. Nor should you place them anywhere publicly accessible.

Once installed, a new `Secret` fieldtype is selectable from the field picker.

---

Disclaimer: I've borrowed some code regarding key generation from the excellent [Eloquent Encryption](https://github.com/RichardStyles/EloquentEncryption) package by [@RichardStyles](https://github.com/RichardStyles). Go check it out!

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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 ~39 days

Total

2

Last Release

1599d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/139632?v=4)[Jess Stopa](/maintainers/jezzdk)[@jezzdk](https://github.com/jezzdk)

---

Top Contributors

[![jezzdk](https://avatars.githubusercontent.com/u/139632?v=4)](https://github.com/jezzdk "jezzdk (2 commits)")

### Embed Badge

![Health badge](/badges/jezzdk-statamic-secret/health.svg)

```
[![Health](https://phpackages.com/badges/jezzdk-statamic-secret/health.svg)](https://phpackages.com/packages/jezzdk-statamic-secret)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[phpseclib/mcrypt_compat

PHP 5.x-8.x polyfill for mcrypt extension

28131.4M42](/packages/phpseclib-mcrypt-compat)[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k624.1k86](/packages/akeneo-pim-community-dev)[phpseclib/phpseclib2_compat

phpseclib 2.0 polyfill built with phpseclib 3.0

132.1M17](/packages/phpseclib-phpseclib2-compat)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[shopware/app-php-sdk

Shopware App SDK for PHP

15109.8k3](/packages/shopware-app-php-sdk)

PHPackages © 2026

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